Validate the efficiency of the system before position

Forums ProRealTime English forum ProOrder support Validate the efficiency of the system before position

Viewing 8 posts - 1 through 8 (of 8 total)
  • #142448

    I would like to add a very simple condition to my systems, based only on observation.

    When the profit curve goes below its moving average (to be defined), positions are not taken in real life. This is a sign that the system is no longer efficient enough.

    When the profit curve drops below its moving average, positions are taken. This is a sign that the system is working well.

    This condition could apply to any system.
    Help to code these additionnal conditions?

    For example, positions on this system would not have been taken in july (profit under the moving average)

    #142450

    Perhaps you have not read this blog by Nicolas yet?

    https://www.prorealcode.com/blog/learning/how-to-improve-a-strategy-with-simulated-trades-1/

    We are all still waiting for Part 2 because Nicolas is a very busy person!

    #142451

    Yes, I had indeed read it. The idea dates back to 2018. That’s why I’m relaunching the subject to our talented coders 🙂
    I currently test it manually, not very pratical but for testing.

    #142456

    The moving average is calculated upon orders, not time. How do you calculate the MA if you don’t want to take order? The solution is to take fake orders to simulate the strategy in order to see it performs well again…

    #142461

    Perhaps this topic from when I was playing with ideas on trading the equity curve is also of interest:

    https://www.prorealcode.com/topic/simulated-trading/

    1 user thanked author for this post.
    #142500

    that’s the whole problem. Currently, I do a weekly backtest. And when the moving average goes under the profit basket, I manually stop the live system for the week.
    And I check again the following week for a restart or not of the system …

    Not very practical and precise, I admit.

    #142502

    I would like to add a very simple condition to my systems, based only on observation.

    When the profit curve goes below its moving average (to be defined), positions are not taken in real life. This is a sign that the system is no longer efficient enough.

    When the profit curve drops below its moving average, positions are taken. This is a sign that the system is working well.

    This condition could apply to any system.

    Help to code these additionnal conditions?

    For example, positions on this system would not have been taken in july (profit under the moving average)

     

    I saw that you use Day Dax of Doctrading.
    The system isn’t efficient because it’s over optimized..  (it’s my point of view..)

    It’s the same with Day DJI or Cac..  everything is wonderful until bots are put in production.

     

    1 user thanked author for this post.
    #142510

    BTW, with arrays, simulated orders for equity curve trading would be easier to code now. Need v11 and an example of code now 😉

    1 user thanked author for this post.
Viewing 8 posts - 1 through 8 (of 8 total)

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