System-Failure Control
Forums › ProRealTime English forum › General trading discussions › System-Failure Control
- This topic has 6 replies, 5 voices, and was last updated 7 years ago by Nicolas.
-
-
11/07/2017 at 12:43 PM #51801
I was considering to trade some systems in real and for that I would like to have some kind of system-failure control, some rules that stop a system when it´s not profitable, temporary or permanently.
Something like: stop operating in real when the total result of the last 10 trades is negative, an restart when it goes back to green. A roughly analisys of this filter shows a decrease in DD but also a decrease of benefits, when there are benefits of course, if the system goes south this filter would avoid bigger losses.
My question: Do you use some failure-control? If so how it works?
11/07/2017 at 9:17 PM #51866This is what I use if things are going wrong, even if things were good at the beginning and then start to be wrong
Quit the program123456789101112//QUIT THEN ROBOT//totalrisk=100 //money maximum to riskQ=MAX(Q,STRATEGYPROFIT)R=Q-STRATEGYPROFITIF R > totalrisk THENQUITENDIFIF STRATEGYPROFIT < (-1* totalrisk) THENQUITENDIF1 user thanked author for this post.
11/08/2017 at 10:00 AM #51901Great ‘Fuse’ coding Leo. I’ll add that to my armoury.
Another idea is trading an average of the strategy profit curve:
https://www.prorealcode.com/blog/trading-strategy-profit-curve/
1 user thanked author for this post.
11/08/2017 at 7:32 PM #52005Leo, if understand the code well it stops the system when a fixed DrawDown is reached (“totalrisk”), isn´t it?. Thanks for sharing, I like the idea. Do you restart the system at some point?
Vonasi, thanks, that´s also another good way
11/09/2017 at 12:32 AM #5201611/09/2017 at 8:10 AM #5202411/09/2017 at 10:07 AM #52064Trading an average of the equity curve or similar will only yield good results if there is serial correlation between the trades. This is true for only very few strategies.
Right, I wrote an interesting article about this last year: https://www.prorealcode.com/blog/trading-strategy-profit-curve/
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on