LIVE - Bitcoin + Ethereum - 1 Minute Charts - Pine Script Trade Bot

Streamed on:
302

This strategy can be used for day trading the one, five and fifteen-minute charts. It also works for swing trading using the hourly, daily and weekly charts. The strategy is based on the Commodity Channel Index technical indicator. The CCI is set at the standard value of 20. The pine script trading bot will buy when the CCI is greater than zero. The bot will sell when the CCI is less than zero. The bot automatically puts green and orange triangles on the chart when the CCI crosses up and down through zero. To put this bot onto your charts, follow the directions in the video below.

---------------------------------------------------------------

//@version=5
indicator("CCI.1Buy.1Sell.Zero", overlay=true)

// Calculate CCI
length = input.int(20, title="CCI Length")
cci_value = ta.cci(close, length)

// Define buy and sell conditions
buy_signal = ta.crossover(cci_value, 0)
sell_signal = ta.crossunder(cci_value, 0)

// Plot buy and sell signals with green and orange triangles
plotshape(series=buy_signal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, offset=0)
plotshape(series=sell_signal, title="Sell Signal", location=location.abovebar, color=color.orange, style=shape.triangledown, size=size.small, offset=0)

---------------------------------------------------------------

How-to insert pine script trading strategies onto TradingView charts: https://rumble.com/v4nw19o-how-to-insert-pine-script-trading-strategies-onto-tradingview-charts.html

---------------------------------------------------------------

Loading comments...