Please help in converting the meta code in afl

#24
Dear Seniors,
Please help me for coding this AFL. I wanted to plot below mentioned afl's daily value (one line), hourly value (dotted Staircase) and 5 Minute value all three on 5 Minute chart. I have tried and wasted much time.
Kindly help me when time permits.

//JNSAR - Indicator ideated by Mr Illango

_SECTION_BEGIN("JNSAR");

Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

Period = Param("Length",5,5,100,1);

// JNSAR = (5 days HEma+5Days CEma+5Days LEma)/15

isum = (Sum(ema(High,Period),Period) + Sum(ema(Low,Period),period) + Sum(ema(Close,Period),period));

jnsar = round(isum/15);

buy = Cross(Close, jnsar);
sell =Cross(jnsar,Close);

Short = Sell;
Cover = Buy;

color = IIf(C>jnsar,colorGreen,colorRed);

Plot(jnsar,"JNSAR",color,styleDots|styleNoLine|stylethick);

_SECTION_END();
Thanks in advance.
 

Similar threads