Premium Only Content
LIVE - AI Trading Bot - Bitcoin + Ethereum - 1 Minute Chart - CCI.5LONG.5SHORT-150
@DayTradingCryptos strategy "CCI.5LONG.5SHORT-150"
For 1 and 5 minute charts set between 100->150
Open source pine script code -> copyright free.
Can only be used on TradingView charts.
//@version=5
indicator("CCI.5LONG.5SHORT", overlay=true)
// Calculate CCI
length = input.int(150, title="CCI Length")
cci_value = ta.cci(close, length)
// Define conditions of LONG and SHORT
// The bot is always in a position, either SHORT or LONG
// The bot trades 0.1 BTC each LONG signal, and 0.1 BTC each SHORT signal
// The bot trades 1.0 ETH each LONG signal, and 1.0 ETH each SHORT signal
// LONG makes money when the price goes up, and SHORT makes money when the price goes down
// If only one LONG is active and SHORT shows next, the LONG is sold and one SHORT position is started
// If only one SHORT is active and LONG shows next, the SHORT is bought to cover, and one LONG position is started
// If the price falls sharply, there can be a maximum of five SHORT positions. Any LONG closes all SHORT positions, and starts one LONG position
// If the price rises sharply, there can be a maximum of five LONG positions. Any SHORT closes all LONG positions, and starts one SHORT position
// Define CCI +250 line LONG and SHORT
// LONG occurs when the CCI rises above +250
// SHORT occurs when the CCI drops below +250
buy_signal_pos250 = ta.crossover(cci_value, +250)
sell_signal_pos250 = ta.crossunder(cci_value, +250)
// 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)
// Define CCI -250 line LONG and SHORT
// LONG occurs when the CCI rises above -250
// SHORT occurs when the CCI drops below -250
buy_signal_neg250 = ta.crossover(cci_value, -250)
sell_signal_neg250 = ta.crossunder(cci_value, -250)
// Plot LONG and SHORT signals of the CCI on the chart with colored triangles and text labels
// LONG occurs when the CCI rises above +250
// SHORT occurs when the CCI drops below +250
plotshape(series=buy_signal_pos250, title="Buy Signal (Above +250)", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="LONG", textcolor=color.green, offset=0)
plotshape(series=sell_signal_pos250, title="Sell Signal (Below +250)", location=location.abovebar, color=color.orange, style=shape.triangledown, size=size.small, text="SHORT", textcolor=color.orange, offset=0)
// LONG occurs when the CCI rises above +100
// 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="LONG", textcolor=color.green, offset=0)
plotshape(series=sell_signal_pos100, title="Sell Signal (Below +100)", location=location.abovebar, color=color.orange, style=shape.triangledown, size=size.small, text="SHORT", textcolor=color.orange, offset=0)
// LONG occurs when the CCI rises above 0.00
// 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="LONG", 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)
// LONG occurs when the CCI rises above -100
// 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="LONG", textcolor=color.green, offset=0)
plotshape(series=sell_signal_neg100, title="Sell Signal (Above -100)", location=location.abovebar, color=color.orange, style=shape.triangledown, size=size.small, text="SHORT", textcolor=color.orange, offset=0)
// LONG occurs when the CCI rises above -250
// SHORT occurs when the CCI drops below -250
plotshape(series=buy_signal_neg250, title="Buy Signal (Below -250)", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small, text="LONG", textcolor=color.green, offset=0)
plotshape(series=sell_signal_neg250, title="Sell Signal (Above -250)", 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
-
4:00
Day Trading Cryptos
6 months agoThe Best Crypto Charts of the Week
1012 -
1:28:13
Kim Iversen
11 hours agoCancelled Chef Pete Evans Exposes The One Change That Could End Big Food and Pharma
55.3K44 -
4:20:21
Nerdrotic
12 hours ago $53.83 earnedDaradevil Born Again, Comics Industry CRASH, Neu-Hollywood REBUILD | Friday Night Tights #337
185K31 -
1:32:34
Glenn Greenwald
8 hours agoThe Future of Gaza With Abubaker Abed; Journalist Sam Husseini On His Physical Expulsion From Blinken’s Briefing & Biden’s Gaza Legacy | System Update #391
88.7K65 -
1:34:48
Roseanne Barr
11 hours ago $17.55 earnedWe are so F*cking Punk Rock! with Drea de Matteo | The Roseanne Barr Podcast #83
71.6K43 -
1:08:20
Man in America
11 hours ago🇨🇳 RedNote: A CCP Trojan Horse Deceiving Americans? w/ Levi Browde
31.5K32 -
3:55:11
I_Came_With_Fire_Podcast
14 hours agoTrump SABOTAGE, LA FIRE CHIEF SUED, and BIDEN’S LAST F-U!
18.9K7 -
2:59:47
Joker Effect
6 hours agoUkraine in a video game? Hardest thing I have done. S.T.A.L.K.E.R.2 Heart of Chornobyl,
69.9K4 -
1:15:22
Flyover Conservatives
1 day agoEczema, Brain Fog, B.O., and Gas… Eating Steak and Butter Creates Ultimate Health Hack - Bella, Steak and Butter Gal | FOC Show
54.7K3 -
51:58
PMG
10 hours ago $2.41 earned"Can the Government Learn from Elon Musk’s 70% Labor Cut? A Deep Dive into Inefficient Agencies"
38.1K1