Join our facebook group for Amibroker afl code discussion https://www.facebook.com/groups/603980776889348

Nice Heiken Ashi Amibroker AFL



Nice Heiken Ashi Amibroker AFL
Nice Heiken Ashi Amibroker AFL


//www.aflcode.com
SetChartOptions(0,chartShowArrows | chartShowDates);

HaClose = (O + H + L + C)/4; 
HaOpen = AMA( Ref( HaClose, -1 ), 0.5 ); 
HaHigh = Max( H, Max( HaClose, HaOpen ) ); 
HaLow = Min( L, Min( HaClose, HaOpen ) ); 
xDiff = (HaHigh - Halow) * 10000;
barcolor = IIf(HaClose >= HaOpen,colorGreen,colorRed);
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "", barcolor, styleCandle );

Previous
Next Post »