EMA Crossovers for Weekly & Monthly Charts with Explorer

#1
Dear Seniors,
I am riyadh from Bangladesh. I need weekly and monthly derivation for the following AFL.

Thanks in Advance.

_SECTION_BEGIN("STOCHA_RSI_EMA_SAR_4NP");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

Sell = Short = Cross( EMA( Close, 34 ), EMA( Close, 10 ));
Buy = Cover = Cross( EMA( Close, 10 ), EMA( Close, 34));

Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low-1, High+1));
_SECTION_END();

BuyPrice=ValueWhen(Buy, C);
SellPrice=ValueWhen(Sell, C);


Filter=Buy OR Sell ;


SetOption("NoDefaultColumns", True);
AddTextColumn(Name(), "Symbol", 77, colorDefault, colorDefault, 120);
AddColumn(DateTime(), "Trigger Date", formatDateTime);



AddColumn(IIf(Buy, 66, 83), "Signal", formatChar, colorYellow, IIf(Buy, colorGreen, colorRed));
AddColumn(IIf(Buy, BuyPrice, SellPrice), "Entry", 6.2);
AddColumn(LastValue(C), "Entry Price.", 6.2);
_SECTION_END();
 

Similar threads