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

Streamed on:
1.08K

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 says to buy when the CCI rises above zero. The bot says to sell when the CCI drops below zero. The bot automatically puts green and orange triangles on the chart when the CCI crosses up and down through zero.

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

// @DayTradingCryptos -> this code is open source

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

// Calculate CCI
// Test different settings by changing "20"
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, text="LONG", textcolor=color.green, offset=0)
plotshape(series=sell_signal, title="Sell Signal", location=location.abovebar, color=color.orange, style=shape.triangledown, size=size.small, text="SHORT", textcolor=color.orange, 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...