Help Needed for an AFL...

#1
Hi!

I want to plot 13 days MA or EMA on Intraday charts of 05/ 10/ 15/ 20/ 25/ 30.... mins time frame...

And 13 week MA or EMA on EOD chars

AFL Stalwarts, please help me out....

Thanks and Regards...
 
Last edited:

johnnypareek

Well-Known Member
#2
Hi!

I want to plot 13 days MA or EMA on Intraday charts of 05/ 10/ 15/ 20/ 25/ 30.... mins time frame...

And 13 week MA or EMA on EOD chars

AFL Stalwarts, please help me out....

Thanks and Regards...
DAILY ON INTRADAY:
HTML:
_SECTION_BEGIN("Price");

GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

_SECTION_END();


DC = TimeFrameCompress( Close, inDaily ); 
DAILYma = MA( DC, 13 ); 
DAILYyma = TimeFrameExpand( DAILYMA, inDaily ); // 
Plot( DAILYMA, "DAILYMA", colorBlue );
WEEKLY ON DAILY

HTML:
_SECTION_BEGIN("Price");

GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

_SECTION_END();


DC = TimeFrameCompress( Close, inWeekly ); 
WEEKLYMA = MA( DC, 13 ); 
WEEKLY = TimeFrameExpand( WEEKLYMA, inWeekly ); // 
Plot( WEEKLYMA, "WEEKLYMA", colorBlue );
ENJOY
 

Similar threads