+91-0000000000

}

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

Coloured Schemes

AFL code in Amibroker allows traders to create custom-colored schemes for their charting and analysis. These colored schemes can help traders personalize their charting layouts, making it more intuitive and visually appealing. Amibroker data supports these schemes by providing accurate and up-to-date price data for a wide range of assets.

_SECTION_BEGIN("XAverage");
SetChartBkColor(ParamColor("Background Color",ColorRGB(0,0,0)));

Length = 10;
AvgExp = AMA( C, 2 / (Length + 1 ) );
ColMa=IIf(AvgExp > Ref(AvgExp,-3) ,colorBlue,colorOrange);

Plot(AvgExp,"MA",ColMa,styleThick,styleLine);
_SECTION_END();

_SECTION_BEGIN("Heiken Ashi");
Value1 = MA(C,8);

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;
SetBarFillColor(IIf(HaClose>HaOpen,colorBrightGreen,colorRed));
Cancolor = IIf(HaClose > Value1,colorBrightGreen,colorRed);
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "", Cancolor, styleCandle );
_SECTION_END();

Open chat
1
Hi, how can I help you?