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)
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!
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.
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…
Perhaps this topic from when I was playing with ideas on trading the equity curve is also of interest:
Simulated Trading
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.
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.
BTW, with arrays, simulated orders for equity curve trading would be easier to code now. Need v11 and an example of code now 😉