# Modified SH's 315 Strategy by Santhosh2010

#### santhosh2010

##### Banned
Just i modified the SH's 315 Strategy for " avoid the whipsaws "

Kindly watch both charts And just understand this new logic.n Enjoy the trades.:clap:

PHP:
``````_SECTION_BEGIN("MA Cross");

//Modified SH's 315 Strategy by Santhosh2010

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);
Shortsetup=Flip(s1,b1);
Col=IIf(trend==1,colorGreen,4);
SetBarFillColor(Col);
Plot(C,"Close",Col,64);

_SECTION_END();``````

#### bajica

##### Member
Hi Santosh2010,

Congratulations for modifying the time tested 315 strategy.
Hope to see and understand more...

Regards,

#### santhosh2010

##### Banned
How to identify market trend ?

CMP if trade above the band "market is in uptrend, viceversa short.

when CMP if its trade between the band "Market is in consolidation base (Range bound) "

#### VJAY

##### Well-Known Member
Dear santhosh,
Thanks for the modified version of 315 ....can you please add if bar close inside 15 h-L then colour of bar change to yelllow or other colour.....

#### basudeo

##### Member
_SECTION_BEGIN("MA Cross");

//Modified SH's 315 Strategy by Santhosh2010

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);
Shortsetup=Flip(s1,b1);
Col=IIf(trend==1,colorGreen,4);
SetBarFillColor(Col);
Plot(C,"Close",Col,64);

_SECTION_END();
============
Please convert this code in METASTOCK format.

If not please give equivalent of:
Flip(array1,array2) in METASTOCK format.

#### bharathi2005

##### Active Member
GM Santhosh pls give detilles prifeely about SH 315 modified i am using Ichart i am install ema only manually Thankyou