Scalping DAX UT 50s

Forums ProRealTime English forum ProOrder support Scalping DAX UT 50s

Viewing 5 posts - 1 through 5 (of 5 total)
  • #222574

    Hello, I’ve created a code for scalping the DAX based on the 50-period Simple Moving Average (SMA) on the 50-second timeframe. The signal triggers when the 7-period SMA crosses above the 20-period SMA, but we’re above the 50-period SMA, and vice versa.

    Here’s the code. Do you have any ideas for improving it? I’ve experienced significant losses at times.

     

    #222582

    Post your topic in the correct forum:  ProOrder: only strategy topics.

    I moved it from ProBuilder support.

    Thank you 🙂

     

    #222588

    Strategies based on moving averages are known to look great on backtest, but the real live performance then turns out to be very different.

    It is so easy to get the optimiser to find MA crosses etc over a long backtest period, but these same MA crosses etc do not appear again in quite the same combination during Live running.

    I suggest you re-optimise over 10K bars only and also re-optimise every day!

    Let us know if losses reduce?

    #222641
    Wim

    Hello. I think your code needs a little revision. On the screen capture I indicated 2 IF-THEN-ENDIF blocks that need to be extracted from the IF where you test for the presence of a signal. I guess you expect from these 2 indicated IF-THEN-ENDIF blocks that they put your position to BreakEven. But currently these blocks will only be executed when a valid entry signal is present, and not during the position itself.
    Next, the condition for BE needs a correction too. Currently you state “longonmarket and tradeprice + 10”. I think I understand what you mean, but PRT will not. Try this: “longonmarket and close > tradeprice+10”. You could also use high instead of close, whatever you prefer. The other one will be “shortonmarket and close < tradeprice -10”.  Good luck. And if 50S doesn’t work, try M5, you could be surprised.

    1 user thanked author for this post.
    #222675

    Hello, I’ve made some modifications to my code, and now we need to use it on the DAX with a 5-minute timeframe. Could you try it in simulation from September 30th to October 19th and let me know if you have any ideas for improvement? I’ve resolved my break-even issue.

    I would like to add conditions for a second buying condition for a shorter take profit, especially at the end of bullish movements with a MACD reversal or by taking advantage of price elasticity relative to its moving average (close > 100 pips).

    The problem is that I don’t know how to manage differentiating positions. How can I limit the first buying condition to 1 lot and the second buying condition to 2 lots, for example?

     

     

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login