LIVE - AI Trading Bot - Bitcoin + Ethereum - 1 Minute Chart

Streamed on:
903

These buy and sell signals are automatically generated by an AI trading bot I created using the pine script coding language that can only be used on TradingView.com's charts.

This code is free for all to use and modify:

//@version=5
indicator("CCI...3LONG...3SHORT", overlay=true)

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

// Define CCI +100 line LONG and SHORT
// LONG occurs when the CCI rises above +100
// SHORT occurs when the CCI drops below +100
buy_signal_pos100 = ta.crossover(cci_value, +100)
sell_signal_pos100 = ta.crossunder(cci_value, +100)

// Define CCI zero line LONG and SHORT
// LONG occurs when the CCI rises above 0.00
// SHORT occurs when the CCI drops below 0.00
buy_signal_zero = ta.crossover(cci_value, 0)
sell_signal_zero = ta.crossunder(cci_value, 0)

// Define CCI -100 line LONG and SHORT
// LONG occurs when the CCI rises above -100
// SHORT occurs when the CCI drops below -100
buy_signal_neg100 = ta.crossover(cci_value, -100)
sell_signal_neg100 = ta.crossunder(cci_value, -100)

// Plot LONG and SHORT signals of the CCI on the chart with triangles and text labels

// LONG reverses a SHORT position. SHORT reverses a LONG position
// If the price rises sharply, there can be two or three LONG positions. The first SHORT reverses all LONG positions, and starts one SHORT position
// If the price falls sharply, there can be two or three SHORT positions. The first LONG reverses all SHORT positions, and starts one LONG position

//LONG3 occurs when the CCI rises above +100
// Yellow SHORT occurs when the CCI drops below +100
plotshape(series=buy_signal_pos100, title="Buy Signal (Above +100)", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="LONG3", textcolor=color.green, offset=0)
plotshape(series=sell_signal_pos100, title="Sell Signal (Below +100)", location=location.abovebar, color=color.yellow, style=shape.triangledown, size=size.small, text="SHORT", textcolor=color.yellow, offset=0)

// LONG2 occurs when the CCI rises above 0.00
// Orange SHORT occurs when the CCI drops below 0.00
plotshape(series=buy_signal_zero, title="Buy Signal (Crossover Zero)", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="LONG2", textcolor=color.green, offset=0)
plotshape(series=sell_signal_zero, title="Sell Signal (Below +100)", location=location.abovebar, color=color.orange, style=shape.triangledown, size=size.small, text="SHORT", textcolor=color.orange, offset=0)

// LONG1 occurs when the CCI rises above -100
// Red SHORT occurs when the CCI drops below -100
plotshape(series=buy_signal_neg100, title="Buy Signal (Below -100)", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="LONG1", textcolor=color.green, offset=0)
plotshape(series=sell_signal_neg100, title="Sell Signal (Above -100)", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small, text="SHORT", textcolor=color.red, offset=0)

Loading 2 comments...