I'm trying to use MAE to caliber a Stop Loss, which should be easy, but I'm having a small technical problem.
Say I have 10 securities, I run the system without stop loss, and I get my MAE (average of all MAE trades) for each security.
Now, I want to use such information, i.e. I want to use the MAE of each security to set my stop loss (let's say, 2 * MAE).
Obviously, when I run again the code with the StopLoss, the MAE will be zero (at the start), so it will keep on stopping out the trades.
1) Is it possible to plug the MAE value from the previous run, store it somewhere and use it again (one for each security)?
2) If that's not possible, some kind of Walk Forward? You calculate the MAE without any stop loss on a certain sample and then use a function of that value as a stop loss for the future.
Thank you

Comment