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.
-
-
09/26/2017 at 3:24 PM #4741309/27/2017 at 8:41 AM #4746209/27/2017 at 3:56 PM #47540
Hello,
I have taken the version from CKW and tried to improve, so that the code works also with other currencies (with different optimized parameters). I added:
- a closure of all opened positions before WE (avoiding Sunday gap)
- an additional filter based on Stochastics.
- additional filter for the short side (same as long side already introduced by CKW)
- I replaced the trailing stop by the one developed by Nicolas
Compared to previous version on EURUSD, backtest takes even less positions (so lower total return), but shows superior Gain/Loss ratio (>4!!). Other currencies works also, even if the KPI are a bit less impressive, although good enough to trade imo. Maybe the code are too optimized, I only have 3 years of 1H historical data. For those who have more, they can maybe run some more robust backtests?
What is your opinion, readers?
1 user thanked author for this post.
10/02/2017 at 8:56 AM #47967Hi Stefou,
Nice work with trying some additional pairs. I my opinion is EURGBP the best addition.
If I could make one suggestion it would be to try changing all targets and “pip based” commands to be ATR based which would avoid fitting values to current market conditions.
10/02/2017 at 9:19 AM #4797010/02/2017 at 9:28 AM #47974Hi, I think it would be good to try a greater distance for trailing stops and profit targets. You might get a lower win rate but that’s irrelevant because you will be able to ride winners in a much more efficient way. Maybe also try using ATR to determine the distance?
10/02/2017 at 10:16 AM #4797810/02/2017 at 11:28 AM #4798410/02/2017 at 12:25 PM #4799510/02/2017 at 3:15 PM #4801510/02/2017 at 3:32 PM #4802010/02/2017 at 8:37 PM #48061Hello CKW you may want to edit the code where we exit all positions before WE . I know use this, to adjust when daylight changes (a copy from the forum):
// quit all positions before we
if (currentmonth = 3 and day >= 15) or (currentmonth = 11 and day < 8) then //daylight-saving corrections
dlc = 1
else
dlc =0
endif
//no pos before WE
If dayofweek = 5 and hour >= 22 -dlc Then
If longonmarket Then
Sell at market
ElsIf shortonmarket Then
Exitshort at market
EndIf
EndIf10/04/2017 at 5:43 PM #48213I was trying out a strategy idea last week using the universal/standard Bill Williams fractal code found here in the library but I stopped development on the strategy when I noticed that the fractal levels calculated in the strategy code were not the same as those shown by an indicator with identical fractal code applied on the chart. I’ve just applied the same indicator with ALES fractal breakout strategy and noticed the levels also do not match. Anyone else noticed this?
10/04/2017 at 6:15 PM #48215@ Vonasi
I’ve change level from High/low to close, because I want to consider close level breakout
//BILL WILLIAM FRACTAL INDICATOR//CP=PERIODCP=113if 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]endif10/04/2017 at 7:07 PM #48217Aaahh – that explains the difference. Any particular logic behind using CLOSE rather than LOW/HIGH? I believe that you ‘d get more false breakouts but then again also get earlier entry. Have you tried it with TYPICALPRICE rather than CLOSE?
-
AuthorPosts