Breakout M5 / H4 Nasdaq

Viewing 15 posts - 61 through 75 (of 97 total)
  • Author
    Posts
  • #181351 quote
    phoentzs
    Participant
    Master

    My version got 17pips yesterday during the last upswing, now flat. The version of Nonethless suffered an SL in the last trade, also now flat. Wait for the next upswing.

    #181354 quote
    murre87
    Participant
    Senior

    which version of yours Phoentzs? Some you already shared or some version u can share?

    #181357 quote
    phoentzs
    Participant
    Master

    A version that I didn’t share, but that is based on the description from this post onwards. Plus a trailing SL.

    Breakout M5 / H4 Nasdaq

    #182438 quote
    murre87
    Participant
    Senior

    Did u made a short version of this code phoentzs? Something u would share?

    #182439 quote
    phoentzs
    Participant
    Master

    Yes, I have a short version running in demo. But I’m on the move at the moment. You are welcome to contribute your ideas.

    #182452 quote
    monkeys nuts
    Blocked
    New

    “You are welcome to contribute your ideas.”

    Well put, I’ll start trying out a short version and post it here if I have any success.  Thanks again for sharing the initial idea.

    murre87 thanked this post
    #182457 quote
    murre87
    Participant
    Senior

    No coder but Ill make it a try 🙂

    Feel free make this version better:

    //Break-H4 Nasdaq M5
    //================================================
    
    DEFPARAM CUMULATEORDERS = false
    defparam preloadbars = 5000
    
    
    //Risk Management
    PositionSize=1
    
    
    timeframe(4hour, updateonclose)
    barCount = barIndex
    
    D1 = low
    D2 = (Close < Open) //green
    D3 = (Close > Open) //red
    D4 = (low < low[1])//lowerhigh
    D5 = (low > low[1])//higherhigh
    //MACDLiniex = MACDline[12,26,9](close) > 0
    MA5xx  = Average[3,1](typicalprice) //close
    MA10xx  = Average[10,1](typicalprice) //close
    MA15xx = Average[15,1](typicalprice) //15,1 close
    
    myshortx   = MA15xx < MA15xx[1] 
    timeframe(default)
    once tradeOn = 1
    if intradayBarIndex = 0 then
    tradeOn = 1
    endif
    tradeBar = barCount
    if  not onMarket and tradeBar<>tradeBar[1] then
    tradeOn = 1
    endif
    
    
    //Volaititätfilter
    AvgRange = average[20,0](range)
    TradeOFF  = range > (AvgRange * 3) //no trading if the current range > twice its average //3
    
    
    // trading window
    ONCE BuyTime  = 080000
    ONCE SellTime = 215500
     
    // position management
    IF Time >= BuyTime AND Time <= SellTime THEN
    
    If close crosses under D1 and myshortx and D3  and tradeOn Then //and not c5
    sellshort PositionSize CONTRACTS AT MARKET
    SET STOP %LOSS 0.9 //100
    SET TARGET %PROFIT 1 //125
    tradeOn = 0
    ENDIF
    
    If close crosses under D1 and myshortx and D2 and tradeOn Then 
    sellshort positionsize CONTRACTS AT MARKET
    SET STOP %LOSS 0.8 //100
    SET TARGET %PROFIT 1 //125
    
    tradeOn = 0
    ENDIF
    
    endif
    
    ////////FOR STOPLOSS MANNGEMENT
    startBreakeven = 35
    PointsToKeep = 52
     
    once breakeven = 1//1 on - 0 off
     
    //reset the breakevenLevel when no trade are on market
    if breakeven>0 then
    IF NOT ONMARKET THEN
    breakevenLevel=0
    ENDIF
    // --- BUY SIDE ---
    //test if the price have moved favourably of "startBreakeven" points already
    IF LONGONMARKET AND close-tradeprice(1)>=startBreakeven THEN
    //calculate the breakevenLevel
    breakevenLevel = tradeprice(1)+PointsToKeep
    ENDIF
     
    //place the new stop orders on market at breakevenLevel
    IF breakevenLevel>0 THEN
    SELL AT breakevenLevel STOP
    ENDIF
    // --- end of BUY SIDE ---
     
    IF SHORTONMARKET AND tradeprice(1)-close>startBreakeven THEN
     
    //calculate the breakevenLevel
    breakevenLevel = tradeprice(1)-PointsToKeep
    ENDIF
    //place the new stop orders on market at breakevenLevel
    IF breakevenLevel>0 THEN
    EXITSHORT AT breakevenLevel STOP
    ENDIF
    endif
    
    if time = 220000 and dayofweek=5 and (PositionPerf * PositionPrice / PipSize) >= 5 then  //
    EXITSHORT AT Market
    endif
    
    
    
    #182458 quote
    phoentzs
    Participant
    Master

    Short on Nasdaq is difficult. I have a reasonably reasonable version on Dax Short. But still see if she really works. In the chart, it looks easy if you are manually. It is automatically difficult.

    #182459 quote
    murre87
    Participant
    Senior

    Är u running this in m3?

    TEST-Break-H4-Nasdaq-M5.itf

    #182460 quote
    phoentzs
    Participant
    Master

    Long works well in M5, M3 better and M1 even better. But only with trailing stop.

    #182462 quote
    murre87
    Participant
    Senior

    witch cind of trailing stop?

    once trailingstopPC = 1 // Percentage TS, includes break even function
    once enableBreakEven = 1 //Break even, can be used in conjunction with ATR TS
    once trailingstopATR = 1 //ATR TS
    once trailingstopRTS = 1 //RobertoGozzi trailing stop

    #182467 quote
    phoentzs
    Participant
    Master

    You can only use a trailing stop. It is possible that exist in my trial versions several breakbacks or trailing stops. What you do not use do you have to comment.

    #182470 quote
    phoentzs
    Participant
    Master

    Here is my 1st attempt NASDAQ Short with this strategy. I created in the M5, but maybe even better in M3 or even M1. I have to say, I am positively surprised how well it seems to work. Maybe another work.
    @nonethleess: Do you have time to try your knowledge here again?

    GraHal and murre87 thanked this post
    T1-Break-H4-Nasdaq-M5-short.jpg T1-Break-H4-Nasdaq-M5-short.jpg T1-Break-H4-NasdaqM5-short.itf
    #182473 quote
    phoentzs
    Participant
    Master

    Maybe one more question for the great masters … Nicolas? Robertogozzi? If you manage entries from large time units with a trailing stop … which TF is best used for this? M1… 5? Is more data history better or faster reaction to a trailing stop?

    #182474 quote
    murre87
    Participant
    Senior

    I did some backtests and think M3 i best so far

Viewing 15 posts - 61 through 75 (of 97 total)
  • You must be logged in to reply to this topic.

Breakout M5 / H4 Nasdaq


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
phoentzs @phoentzs Participant
Summary

This topic contains 96 replies,
has 9 voices, and was last updated by murre87
4 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/03/2021
Status: Active
Attachments: 21 files
Logo Logo
Loading...