+91-0000000000

}

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

Coloured Heikin Ashi

Amibroker users can leverage AFL code to create colored Heikin Ashi candlestick charts. The color coding of Heikin Ashi candles enhances the visual representation of trend direction, aiding traders in trend analysis and decision-making. Amibroker data feeder supplies the necessary historical price data for accurate Heikin Ashi charting.

_SECTION_BEGIN("coloured heinkin ashi");
HaC =EMA((O+C+H+L)/4,3); 
HaO = AMA( Ref( HaC, -1 ), 0.8 ); 
HaH = Max( H, Max( HaC, HaO ) ); 
HaL = Min( L, Min( HaC, HaO ) );

e1=EMA(C,21);e2=MA(C,26);
ehh=e1>e2 ; ell=e1<e2 ;
ri= (e1+e2)/2;Colri=IIf(ehh,colorBlue,colorRed);

SetBarFillColor(IIf(Hac>Hao,colorBlue,colorRed));
Colcan=IIf(Hac>ri,colorBlue,colorRed);
PlotOHLC( HaO, HaH, HaL, HaC, "" + Name(), colcan, styleCandle | styleNoLabel );
PlotOHLC(e1,e2,e1,e2,"",Colri,styleCloud);
//Plot(e1,"",colorBlue);
//Plot(e2,"",colorRed);

//Plot(Ref(PH,1), "UpPivot", ParamColor("UpPivot Color",colorRed), ParamStyle("UpPivot Style", styleDashed));
//Plot(Ref(PL,1), "DownPivot",ParamColor("DownPivot Color",colorBlue), ParamStyle("DownPivot Style", styleDashed));
_SECTION_END();

Open chat
1
Hi, how can I help you?