How to write rules for elder 6% equity loss in afl for backtest procedure?
If from begining of the new month the highest equity drop 6%, all trades must be close for the rest of the month. We are allowed to open position again on the next month
can someone please kindly point out where to look in the amibroker knowledge base or paste the code?
I am sure somebody already write the code and its so easy to do it in amibroker, but still I cant find it....
is by using the custom backtest interface (referred to as a CBT). You need to calculate your current month's drawdown and when it reaches your threshold (6% in your example) then Exit existing trades and block any new Entries.
I have not seen an existing code like this so you will need to code it. I'm sure members of the forum will be interested in your code if you do.
@portfoliobuilder, yesss, that's it.... too bad I don't have coding skills, that is why I am asking in this forum....and like you said I also have not seen anyone coding this....