Hi rnr.
As for the MS coding.
I wrote exactly what it on pg.115 of the TradeSim manual.
ExtFml( "TradeSim.SetVariableTradeRank",ATR(10));
Under the call to initialise function.
Then under TradeSim global preferences I specified it to Rank from highest to lowest, this giving preference to trades where the ATR is the highest.
So now the trade database is first sorted by date, and then by volatility, with the most volatile stocks (measured by ATR) given a higher rank.
If you want to Rank from lowest to highest, then you can just choose this option under TradeSim global preferences.
I hope it helps, though i probably made a mistake somewhere in there!
Regards,
Nizar.
Hi Nizar,
Thanks for the heads-up on that.
It's the text in bold where I was having a problem.
Regards,
rnr