As you know we can’t do backtest on our own indicators (I hope it will be possible in future versions of PRT) (Only maxdrawdown, % win and so on..) and we can’t filter with our indicators
I thought about a “trick” snippet I want to share (With 100 000 units). Not perfect but may be helpful
1
2
3
ifzscore>0.5andbarindex>50000then
quit
endif
For example with this code, the first results on backtest would have only zscore>0.5.
Because if results would have zscore<0.5 after 50 000 bars the system stop, and profit stop too
If you have some ideas to improve this snippet and filter results on backtest please share
Based on this trick, you can QUIT (and therefore discard) strategies on any event you can imagine: X losses in a single row ; X orders gain > Y% of equity ; etc..
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.