Fractal breakout intraday Strategy EUR/USD 1H –
Forums › ProRealTime English forum › ProOrder support › Fractal breakout intraday Strategy EUR/USD 1H –
- This topic has 359 replies, 1 voice, and was last updated 1 year ago by RandyG.
-
-
04/17/2017 at 10:37 AM #32276
Yes I know that problem. I might have found another oppertunity i Brent Oil. But my data is limited, so first I used the large contract- not the mini to get the most backtrack data. But still its only from nov 2015. perhaps someone could take a look in a 200000 sample platform. Here is the results.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120//Brent Oil(LOC) - IG MARKET// TIME FRAME 1H// PROBACKTEST TICK by TICK - 100.000 bars// SPREAD 1 point// Elsborgtrading// WF: not ancored- 5 Rep, in sample 70%, OOS 30% optimized in times of two pairs// 1 pair//Period of fractal level: CP= 40 to 50, 1 point//Stop loss by Donchian channel: DC = 65 to 80//2nd Pair//Trailing Stop long: TGL = 5 to 15 , 1 point//Trailing Stop Short: TGS= 5 to 15 , 1 point//3rd pair//TP 60 to 80 , 1 point//SL 30 to 45 , 1 pointDEFPARAM CumulateOrders = falseReinvest=0if reinvest thenCapital = 50000Risk = 1//0.1//in % pr positionStopLoss = 39//7//10 // Could be our variable XREM Calculate contractsequity = Capital + StrategyProfitmaxrisk = round(equity*(Risk/100))MAXpositionsize=5000MINpositionsize=1Positionsize= MAX(MINpositionsize,MIN(MAXpositionsize,abs(round((maxrisk/StopLoss)))))//*Pointsize))))elsePositionsize=1StopLoss = 39Endif///BILL WILLIAM FRACTAL INDICATOR//CP=PERIODCP=45if close[cp] >= highest[2*cp+1](close) thenLH = 1elseLH=0endifif close[cp] <= lowest[2*cp+1](close) thenLL= -1elseLL=0endifif LH=1 thenHIL = close[cp]endifif LL = -1 thenLOL=close[cp]endif//LONG and SHORT CONDITIONS//Positionsize=1if (time >=100000 and time < 230000) thenC1 = (close CROSSES OVER HIL)D1 = (close CROSSES UNDER LOL)IF c1 and not shortonmarket THENBUY positionsize CONTRACT AT MARKETENDIFIF D1 and not longonmarket THENSELLSHORT positionsize CONTRACT AT MARKETENDIFENDIF//TRAILING STOPTGL =14TGS=5if not onmarket thenMAXPRICE = 0MINPRICE = closePREZZOUSCITA = 0ENDIFif longonmarket thenMAXPRICE = MAX(MAXPRICE,close)if MAXPRICE-tradeprice(1)>=TGL*pointsize thenPREZZOUSCITA = MAXPRICE-TGL*pointsizeENDIFENDIFif shortonmarket thenMINPRICE = MIN(MINPRICE,close)if tradeprice(1)-MINPRICE>=TGS*pointsize thenPREZZOUSCITA = MINPRICE+TGS*pointsizeENDIFENDIFif onmarket and PREZZOUSCITA>0 thenEXITSHORT AT PREZZOUSCITA STOPSELL AT PREZZOUSCITA STOPENDIF// DONCHIAN STOPDC=65e= Highest[DC](high)f=Lowest[DC](low)if longonmarket thenlaststop = f[1]endifif shortonmarket thenlaststop = e[1]endifif onmarket thensell at laststop stopexitshort at laststop stopendifset target pprofit 78//TP//30set stop ploss stoploss//*pointsize//graph equity COLOURED(0,0,0) AS "equity"//black//graph (((tradeprice-(tradeprice-((tradeprice*stoploss)/100)))*positionsize*pointvalue*100)/(equity))*100 COLOURED(0,0,0) AS "MAXRISK"//graph (positionsize*stoploss/equity)*100 COLOURED(0,0,0) AS "MAXRISK"graph (stoploss*positionsize/(equity+capital))*100 COLOURED(255,255,255) AS "MAXRISK"//Aqua//Graph HIL COLOURED(0,200,0) AS "BREAKOUT LEVEL LONG"//HIL COLOURED(200,0,0) AS "BREAKOUT LEVEL SHORT"1 user thanked author for this post.
04/17/2017 at 10:51 AM #3228404/17/2017 at 11:22 AM #3228804/17/2017 at 11:34 AM #32289Hi Henrik you are using 1£ mini contract- but that should be the same. I was hoping for more years. it’s not statistically enough to rely on 1,5 years. sadly.
04/17/2017 at 12:13 PM #3229104/17/2017 at 1:31 PM #32304FYI, it is now possible to have lots with decimal with IG. It is no longer needed to round up the contracts calculation.
2 users thanked author for this post.
04/17/2017 at 4:23 PM #3231804/17/2017 at 4:56 PM #3232604/17/2017 at 5:53 PM #3233204/17/2017 at 5:58 PM #3233504/17/2017 at 6:00 PM #3233604/17/2017 at 6:02 PM #3233704/17/2017 at 6:02 PM #3233804/17/2017 at 6:38 PM #3234304/17/2017 at 6:46 PM #32347 -
AuthorPosts