SH's Intraday Strategy - ELH5

I am very impressed with this system. I always believed that if u plan to do big volumes, u need a mechanical method as the pressure of big lots gets to everyone.

It is a momentum based method needs a method to filter pure sideways days. Two losses in a row is a good filter, but why pay the market to know when not to trade. A filter will remove a few positive trades but will get rid of many bad ones. If we can get the strike rate to above 60..then the RR ratio of 1:2 will take care of the over all profit.

I tried coding the basic system and am searching for a good filter...! I am a bit surprised that there are fewer post in the past few days. I wonder if the all the discussion / improvement have shifted to the chat room.



Code:
/////SH Intraday Statregy - ELH5/////////////////
_SECTION_BEGIN("Price");
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 ) ) ));
GraphXSpace = 10;

eh = EMA(H,5); 
el = EMA(L,5);

Plot(eh,"",colorYellow);
Plot(el,"",colorYellow);


Buytrigger = C > eh+1 AND Ref(C,-1) > Ref(eh, -1)+1;
selltrigger = C < el-1 AND Ref(C,-1) < Ref(el, -1)-1;
Buytrigger=ExRem(Buytrigger,Selltrigger);
selltrigger=ExRem(selltrigger,buytrigger);

Col = IIf(BarsSince(Buytrigger) > BarsSince(selltrigger),colorRed,colorGreen);


Plot( C, "Close", Col, styleBar );
Buy = Cross(eL,L) AND Col==colorGreen;
PlotShapes(Buy*shapeUpArrow,colorBrightGreen,0,L);
Sell = Cross(H,eh) AND Col==colorRed;
PlotShapes(Sell*shapeDownArrow,colorRed,0,H);

BuyPrice = ValueWhen(Buy,el,1);
SellPrice = ValueWhen(Sell,eh,1);
sl_buy = BuyPrice-20;
tgt_buy = BuyPrice+20;
sl_sell = SellPrice+20;
tgt_sell = SellPrice-20;


Long=Flip(Buy,Sell);
Shrt=Flip(Sell,Buy );
Plot(IIf(Long AND NOT Buy AND Ref(L,-1) > sl_buy,sl_buy,Null),"",colorWhite,styleThick);
Plot(IIf(Long AND NOT Buy AND Ref(L,-1) > sl_buy ,tgt_buy,Null),"",colorBrightGreen,styleThick);
Plot(IIf(shrt AND NOT Sell AND Ref(H,-1) < sl_sell,sl_sell,Null),"",colorWhite,styleThick);
Plot(IIf(shrt AND NOT Sell AND Ref(H,-1) < sl_sell,tgt_sell,Null),"",colorRed,styleThick); 

Title = EncodeColor(colorWhite)+ "SH's EH5 " + " - " +  Name() + " - " +  EncodeColor(colorRed)+ Interval(2)+ EncodeColor(colorWhite) +
 "  - " + Date() +

"\n"+
WriteIf(Ref(H,-1) > Ref(H,-2),EncodeColor(colorBrightGreen),EncodeColor(colorRed))+"ex  "+Ref(H,-1)+WriteIf(H > Ref(H,-1),EncodeColor(colorBrightGreen),EncodeColor(colorRed))+" Hi "+H+
EncodeColor(colorYellow)+
"\n"+ 
EncodeColor(colorWhite)+"Op "+O+WriteIf(C > O, EncodeColor(colorBrightGreen),EncodeColor(colorRed))+" Cl : " +C+
EncodeColor(colorYellow)+

"\n"+
WriteIf(Ref(L,-1) < Ref(L,-2),EncodeColor(colorRed),EncodeColor(colorBrightGreen))+"ex  "+Ref(L,-1)+WriteIf(L < Ref(L,-1),EncodeColor(colorRed),EncodeColor(colorBrightGreen))+" Lo "+L+
"\n"+"\n"+
EncodeColor(colorYellow)+"TRADE : "+

WriteIf(Col==colorGreen,EncodeColor (colorBrightGreen)+"Long triggered.","")+
WriteIf(Col==colorGreen AND BarsSince(Buytrigger)==0,"\nExit Short @ "+ C,"")+
WriteIf(Col==colorRed,EncodeColor (colorRed)+"short triggered.","")+
WriteIf(Col==colorRed AND BarsSince(Selltrigger)==0,"\nExit long @ "+C,"")+
"\n"+
WriteIf(Buy,EncodeColor(colorBrightGreen)+"Buy  triggered @ "+BuyPrice+ "\n Sl @ "+sl_buy+ " tgt @ "+tgt_buy,"")+
WriteIf(Sell,EncodeColor(colorRed)+"sell triggered @ "+SellPrice+ "\n Sl @ "+sl_sell+ " tgt @ "+tgt_sell,"")+
WriteIf(Long AND NOT Buy AND Col==colorGreen,EncodeColor(colorBrightGreen)+"Buy  triggered @ "+BuyPrice+ "\n Sl @ "+sl_buy+ " tgt @ "+tgt_buy,"")+
WriteIf(shrt AND NOT Sell AND Col==colorRed,EncodeColor(colorRed)+"sell triggered @ "+SellPrice+ "\n Sl @ "+sl_sell+ " tgt @ "+tgt_sell,"")+


"\n"+"\n"+

EncodeColor(colorBrightGreen)+"EMAH : "+ eh+
"\n"+
EncodeColor(colorRed)+
"EMAL  : "+ el+
"\n"+
"\n"
;
@linkon7
I am using metastock can u provide the same Indicator Bulider language for the above intraday strategy.

thanks in advance
Bhavesh Gelani
 

VJAY

Well-Known Member
since the entry is always after second cycle confirmation of the trend.. we can afford to use adx as a filter.


if adx(14) is below MDI(14) and adx(14) is below PDI(14) and adx is below 25 then there is no momentum in the market. This is exactly the scenario we try to avoid since market is directionless and will drift in either direction.


on a typical sideways day, we get 5 trades by the system. out of the 5 trades, 2 hit tgt other 3 hit sl...

filter removed 4 trades and gave us only 1 winner.

Since SH is the creator of this system, he will be the best judge.
Dear Linkon.
Thanks for the nice afl also sharing your thoughts for the method....I also stopped trading this method....can you share the filter which you mentioned to avoid 4 trades....Also add some sound alert when buy/sell triggers:) means consecutive 2 bar close abo/blw emh....
 

linkon7

Well-Known Member
Dear Linkon.
Thanks for the nice afl also sharing your thoughts for the method....I also stopped trading this method....can you share the filter which you mentioned to avoid 4 trades....Also add some sound alert when buy/sell triggers:) means consecutive 2 bar close abo/blw emh....
what made u stop using this method... ? most mechanical methods have a big problem with execution. This one has perfect execution.

I tested the setup on june'2010 with ADX as filter...

gave 52% strike rate,
net profit of 185 points after brokerage...
46 trades..24 positive...
risk reward ratio of 1.83
agv profit after brokerage : 15.40
agv loss after brokerage : 8.40
expectancy : positive 184.40
 

VJAY

Well-Known Member
what made u stop using this method... ? most mechanical methods have a big problem with execution. This one has perfect execution.

I tested the setup on june'2010 with ADX as filter...

gave 52% strike rate,
net profit of 185 points after brokerage...
46 trades..24 positive...
risk reward ratio of 1.83
agv profit after brokerage : 15.40
agv loss after brokerage : 8.40
expectancy : positive 184.40
Dear Linkon,
Adx filter means you look adx in daily tf if adx14 below 25 no trades next day and if D+ or D- above adx then also no trades...am right?
yes am stopped trading this method due to this sideways days....:)
 
Last edited:

linkon7

Well-Known Member
Dear Linkon,
Adx filter means you look adx in daily tf if adx14 below 25 no trades next day and if D+ or D- above adx then also no trades...am right?
yes am stopped trading this method due to this sideways days....:)
Filter is on 5 min tf...

if
adx is less than pdi
adx is less than mdi
adx is less than 25

then no trade...
 

linkon7

Well-Known Member
just finished testing July'2010

This was the worst month to trade in my career. Nearly destroyed my confidence in myself... Nothing seemed to work..market would open and just drift sideways in a narrow 20 point band... this system give a sl of 20 points and that never got hit even once... if we make the profit target ATR based then there is room for improvement... with some smart money management..it could have given profit...

but 48 points loss after 41 trades with a strike rate of just 34 % is just awesome...


strike rate : 34%
net loss : 48 points after brokerage
41 trades... 14 positive
risk reward ratio : 1.55
avg profit after brokerage :
agv profit : 14.2 after brokerage
agv loss : 9.15 after brokerage
expectancy : negative 48
 

VJAY

Well-Known Member
just finished testing July'2010

This was the worst month to trade in my career. Nearly destroyed my confidence in myself... Nothing seemed to work..market would open and just drift sideways in a narrow 20 point band... this system give a sl of 20 points and that never got hit even once... if we make the profit target ATR based then there is room for improvement... with some smart money management..it could have given profit...

but 48 points loss after 41 trades with a strike rate of just 34 % is just awesome...


strike rate : 34%
net loss : 48 points after brokerage
41 trades... 14 positive
risk reward ratio : 1.55
avg profit after brokerage :
agv profit : 14.2 after brokerage
agv loss : 9.15 after brokerage
expectancy : negative 48
Nice work linkon.....yes if we increase profit when in trade...then sure this method is awesome...also you made rule for avoid trades in sideways...which is very imortant...imo many stopped trading this method due to loss in contineous sideways days...so if we avoide sideways trades and make new rule for profitbooking then this method will give good profits though with proper MM rules:)...so please share any thing you find out for profit book also...:)
 

linkon7

Well-Known Member
Hey Linkon7 why don't you change the code and set it to 2 consecutive candles it will make some difference.
it is set to 2 consecutive candles...
 

Similar threads