+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Colored CCI

Combining AFL code in Amibroker and Amibroker data feeder, traders can design colored Commodity Channel Index (CCI) indicators. These color-coded CCI displays make it easier to spot overbought or oversold conditions and potential reversals, helping traders execute timely and informed trades.

_SECTION_BEGIN("colored CCI");
T = 20;
Title = "301-4  " + Name () + "   "  + FullName() + "  " 
+ "CCI" + "   " + "periods:" + WriteVal(T);
MaxGraph = 5;
Graph2 = CCI (T);

Uptrend = 100;  Downtrend =  -100; 

Graph2BarColor = IIf (Graph2 > uptrend, 5, 
                                   IIf (Graph2 < downtrend,4,6));


Graph4 = Graph2;

Buy = Cross (Graph2, 0) AND (Ref (Graph2,-1) < 0) AND (Ref (Graph2,-2) < 0)AND (Ref (Graph2,-3) < 0) AND (LLV (RSI(9),10) < 30) AND Cross (RSI (9),50);
_SECTION_END();

Open chat
1
Hi, how can I help you?