I would like to create money management to my strategy.
The idea is: Strategy is normally trading, and is calculating EMA of the equity curve. WHEN the equity curve will fall down under the EMA, the trading will continue just in "simulated mode" - just paper trading.
EMA is still calculating. There is also sitll calculating the equity curve even we are just paperTrading.
AFTER the equity curve will go over the EMA, the trades will be back in the "REAL MODE" so the real money.
I have few ideas how to create the NinjaScript for this, but it will be little complicated - I will have to have own Enter methods and Exit methods, recognize the "simulated" and the "real" trading, tracing the results of the simulated trading to any collection etc etc... I am programmer so I know the principles of algorithms so It is possible to do this for me, but it will be quite complicated.
So why I am writing,... I am just wondering if you can me advice any classes or methods of NinjaTrader for less complicated implementation of this money management.
I dont know, maybe there are some classes and methods in NinjaTrader for something like simulated trading and then I dont have to implement this "simulation" etc...
Thank you

Comment