Fractal breakout intraday Strategy EUR/USD 1H –

Viewing 15 posts - 241 through 255 (of 360 total)
  • Author
    Posts
  • #47413 quote
    CKWCKW
    Participant
    Veteran
    OK. re-attached
    Capture-1.jpg Capture-1.jpg
    #47462 quote
    NicolasNicolas
    Keymaster
    Legend
    “0 bar” mean that the trade has been opened and closed in the same bar, with tick mode enable, each tick of the bar is tested, so the backtest should be accurate.
    #47540 quote
    stefou102stefou102
    Participant
    Veteran
    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?
    victormork thanked this post
    USDJPY.jpg USDJPY.jpg EURUSD.jpg EURUSD.jpg EURCAD.jpg EURCAD.jpg EURGBP.jpg EURGBP.jpg EURUSD_1H_Fractal.itf EUR_GBP_1H_Fractal.itf USDJPY_1H_Fractal.itf EURCAD_1H_Fractal.itf
    #47967 quote
    victormorkvictormork
    Participant
    Veteran
    Hi 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.
    #47970 quote
    ALEALE
    Moderator
    Master
    Hello as we could see in the last months , many results are different from backtest. we should find dome different way to avoid this problem   some idea?
    #47974 quote
    victormorkvictormork
    Participant
    Veteran
    Hi, 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?
    #47978 quote
    DespairDespair
    Blocked
    Master
    @ALE: Which kind of difference between live and backtest did you discover?
    #47984 quote
    ALEALE
    Moderator
    Master
    X example this is an immane of last month backtest vs real
    IMG_7087.png IMG_7087.png
    #47995 quote
    DespairDespair
    Blocked
    Master
    Wow, this IS a difference! Did you have a look at single trades? What happens there exactly? It looks like for the live version the trades are stopped out pretty early. Are you sure both versions have the same stop loss?
    #48015 quote
    CKWCKW
    Participant
    Veteran
    My edited version don’t have major significant difference. Except trade on 5-Sep triggered in live but not in backtest.
    Capture.jpg Capture.jpg
    #48020 quote
    CKWCKW
    Participant
    Veteran
    Hello Stefou, I like Your “improved version”, both GL for short & buy more than 2.5. That’s great. I started yours in demo live:) thanks for your sharing!
    #48061 quote
    stefou102stefou102
    Participant
    Veteran
    Hello 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 EndIf
    #48213 quote
    VonasiVonasi
    Moderator
    Master
    I 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?
    #48215 quote
    ALEALE
    Moderator
    Master
    @ Vonasi I’ve change level from High/low to close, because I want to consider close level breakout  
    //BILL WILLIAM FRACTAL INDICATOR
    //CP=PERIOD
    CP=113
    if close[cp] >= highest[2*cp+1](close) then
    LH= 1
    else
    LH=0
    endif
    if close[cp] <= lowest[2*cp+1](close)  then
    LL= 1
    else
    LL=0
    endif
    if LH=1 then
    HIL= close[cp]
    endif
    if LL  = 1 then
    LOL=close[cp]
    endif
    #48217 quote
    VonasiVonasi
    Moderator
    Master
    Aaahh – 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?
Viewing 15 posts - 241 through 255 (of 360 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Fractal breakout intraday Strategy EUR/USD 1H –


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
ALE @aleale Moderator
Summary

This topic contains 359 replies,
has 1 voice, and was last updated by RandyGRandyG
3 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/16/2017
Status: Active
Attachments: 174 files
ProRealCode ProRealCode
Loading...