Metatrader code for Modified SH's 315 Strategy

Profittaker

Well-Known Member
#1
Dear all,
I need metatrader mq4 format for Modified SH's 315 Strategy. Any one can convert this or create this strategy for mt4 ?

Courtesy : SH & Santhosh

Amibroker AFL
=================================================
//Modified SH's 315 Strategy
//Amibroker AFL

e1=EMA(C,3);
e2=EMA(H,15);
e3=EMA(L,15);

Plot(e1,"",colorYellow,styleDashed |styleThick);
Plot(e2,"",colorLightYellow,styleDots );
Plot(e3,"",colorLightYellow,styleDots );

b1=Cross(e1,e2);
s1=Cross(e3,e1);
Buysetup=Flip(b1,s1);
Shortsetup=Flip(s1,b1);
trend=IIf(BarsSince(Buysetup)<BarsSince(Shortsetup ),1,0);
Col=IIf(trend==1,colorGreen,4);
SetBarFillColor(Col);
Plot(C,"Close",Col,64);

_SECTION_END();
====================================================

modified SH315 Strategy :-
======================
Basic concept in modified SH315 Strategy,

We are using Total 3 Moving averages :-

Ema 15 based on High.
Ema 15 based on Low.

Ema 3 based on close.(signal line)

Entry logic :-

Long entry : when signal line (Ema 3) is cross (Ema 15,High)
Short entry : when signal line (Ema,3) is cross (Ema 15,low)
 

Attachments

zabeen2004

Well-Known Member
#2
This doesn't need any conversion if candle color is not required. You can simply select moving average indicators from default MT4 indicators and add the values in it. Thats it.....If needed alert you can also download ema crossover alert indicators and add them....

 

Profittaker

Well-Known Member
#3
This doesn't need any conversion if candle color is not required. You can simply select moving average indicators from default MT4 indicators and add the values in it. Thats it.....If needed alert you can also download ema crossover alert indicators and add them....

Thanks Zabeen, thanks for your post. But i like to change candle color also like as Amibroker AFL. can you help this ?