EURUSD Morning Entry V1
Forums › ProRealTime English forum › ProOrder support › EURUSD Morning Entry V1
- This topic has 67 replies, 20 voices, and was last updated 4 years ago by Vonasi.
-
-
06/15/2019 at 1:26 PM #100742
Found that if you don’t use breakeven, and use this version, you don’t have to use a profit-target too.
Payout is higher, the only cost is a slightly higher drawdown. Equity-curve is about the same.
Much quicker calculations!
12345678910111213141516171819202122232425262728293031323334353637383940414243444546//EURUSD 15M Morning Entry//15 MINDEFPARAM CUMULATEORDERS = falseDEFPARAM FLATBEFORE = 100000DEFPARAM FLATAFTER = 200000positionsize=5if intradaybarindex=0 thenflag=0endifif time=140000 thenlevel=highest[2](low)[1]endifbu= BollingerUp[20](close)bd= BollingerDown[20](close)ba= (bu+bd)/2br= (bu-bd)c1= close < dopen(0)c3= level > max(dlow(1),dlow(2)) //dlow(1) and level > dlow(2) (same result)c4= (dclose(1)-dopen(1))/dopen(1)*100<0.65c5= ba<ba[1] or high > bu[1]if c1 and c3 and c4 and c5 and time<130000 THENsellshort positionsize contract at marketendifpp=positionperf(0)*100if shortonmarket and time=141500 and pp<0.30 thenexitshort at marketelseif time> 141500 and pp>0.40 thenflag=1endifif flag=1 and br<br[1] and br[1]<br[2] and br[2]<br[3] and br[3]<br[4] thenexitshort at marketendifendifSET STOP %LOSS 0.4//SET TARGET %profit 106/15/2019 at 6:54 PM #1007641234567891011121314151617181920212223242526272829303132333435363738394041424344454647//EURUSD 15M Morning Entry//15 MINDEFPARAM CUMULATEORDERS = falseDEFPARAM FLATBEFORE = 100000DEFPARAM FLATAFTER = 200000positionsize=5if intradaybarindex=0 thenflag=0endifif time=140000 thenlevel=highest[2](low)[1]endifbu= BollingerUp[20](close)bd= BollingerDown[20](close)ba= (bu+bd)/2br= (bu-bd)c1= close < dopen(0)c3= level > max(dlow(1),dlow(2)) //dlow(1) and level > dlow(2) (same result)c4= (dclose(1)-dopen(1))/dopen(1)*100<0.65c5= ba<ba[1] or high > bu[1]if c1 and c3 and c4 and c5 and time<130000 THENsellshort positionsize contract at marketendifpp=positionperf(0)*100if shortonmarket and time=141500 and pp<0.40 and low>bd thenexitshort at marketelseif time> 141500 and pp>=0.15 thenflag=1endifif flag=1 and br<br[1] and br[1]<br[2] and br[2]<br[3] and br[3]<br[4] thenexitshort at marketendifendifSET STOP %LOSS 0.4set TARGET %profit 1.5graph ppUse of bollingerbands is working very nicely
06/16/2019 at 10:42 AM #10078606/16/2019 at 2:52 PM #100803@stefou102 @stefou102 Have u seen a difference using market vs limit orders? Whats your preference and why?
06/16/2019 at 3:13 PM #10080506/16/2019 at 5:00 PM #100809123456789101112131415161718192021222324252627282930313233343536373839404142434445//EURUSD 15M Morning Entry//15 MINDEFPARAM CUMULATEORDERS = falseDEFPARAM FLATBEFORE = 100000DEFPARAM FLATAFTER = 180000positionsize=1if intradaybarindex=0 thenflag=0endifif time=140000 thenlevel=highest[2](low)[1]endifbu= BollingerUp[20](close)bd= BollingerDown[20](close)ba= (bu+bd)/2br= (bu-bd)c1= close < dopen(0)c3= level > max(dlow(1),dlow(2)) //dlow(1) and level > dlow(2) (same result)c4= (dclose(1)-dopen(1))/dopen(1)*100<0.65c5= ba<ba[1] or high > bu[1]if c1 and c3 and c4 and c5 and time<124500 THENsellshort positionsize contract at marketendifpp=positionperf(0)*100if shortonmarket and time=141500 and pp<0.40 and low>bd thenexitshort at marketelseif time> 141500 and pp>=0.15 thenflag=1endifif flag=1 and br<br[1] and br[1]<br[2] and br[2]<br[3] and br[3]<br[4] thenexitshort at marketendifendifSET STOP %LOSS 0.4set TARGET %profit 1.506/16/2019 at 6:18 PM #10081206/16/2019 at 6:28 PM #100814It looks like you did not use the tick-by-tick mode, since 8-year data history for a 15-minute TF is way too much.
I suggest that you tick that box and backtest again.
1 user thanked author for this post.
06/16/2019 at 8:15 PM #10082006/17/2019 at 11:08 AM #10087306/17/2019 at 11:50 AM #10087706/17/2019 at 12:21 PM #100878Hi, I got a few questions.
1st.
I’am a bit unsure about the tick-by-tick box. It doesn’t make a difference if it’s checked or not, even when you select 25 units of 15 min to display.
If it doesn’t take tick-by-tick into account when backtesting, when using a conditions with close as parameter it’s useless because that changes throughout the bar in live trading and so it can flip-flop during 15 minutes?
If that’s the case; open, high and low are usable as condition without tick-by-tick data?
2nd;
If using not onmarket or to check if shortonmarket, it slows backtesting down.
The end-result in backtesting is the same when used or not.
That’s mainly because of cumulateorders=false.
So I believe it’s not needed to check the condition of the market when live trading the way it’s coded now. Is that correct?
Thanks.
last thing though
The position-performance was included before, but it didn’t seem necessary for the end result.
I removed it and got rid of 2 values which normally would be optimised.
Flat-after time decides a bit the drawdown between
06/18/2019 at 9:45 PM #100981Hi Paul,
I don’t have the answer to your questions but I have made a few test with your strategy.
My conclusions:
– Shorts are performant because since 2008 EURUSD is in a long bearish tendency. Strategy is less performant in bullish trends like in 2017.
– On your last screenshot we can see that annual performance is decreasing. Maybe it is a sign that the bearish tendency is slowly ending.
– The trading hours impacts a lot the strategy performances. For short trades 10 to 14 seems the best period. For long trades I got interesting results between 18 to 20 or between 23 to 5 o clock (with increasing night cost!)
– During Ranges or Uptrends the equity curve is flat during long periods. Condition c5 with Bollinger Bands seems to improve performances. Testing another volatility indicator may do better.
– Condition c1 and c2 don’t improve performance.1 user thanked author for this post.
06/19/2019 at 12:36 AM #100989@Magifina Yeah it works less in a bullish market, but still profitable.
But this year is on track for a good result. Only halve way yet!
I tried to find for long trades the best times and started blank.
My finding after optimising the best time to go long is at 14u sharp and close at 21u. (flexible)
Optimised a few conditions. Quickly got result worth digging further. No BB yet.
12345678910111213141516171819//EURUSD 15M Afternoon Entry LONG//15 MINDEFPARAM CUMULATEORDERS = falseDEFPARAM FLATBEFORE = 140000DEFPARAM FLATAFTER = 210000c1= dopen(0) > dclose(1)c2= dopen(1) > highif time=140000 and c1 and c2 THENbuy 5 contract at marketendif//if time = x then//sell at market//endifSET STOP %LOSS 0.506/19/2019 at 5:11 PM #101065 -
AuthorPosts
Find exclusive trading pro-tools on