I want to make a money management system (for example: if I had a winning trade, the script will add the profit to the total account value and risk relative to that).
In order to do that, I need help in changing the "remembered" value of an input parameter (for example -> account value) by the script, and not by the user.
In other words:
-currently, I have an input parameter named: Account value which is by default or by a user defined as 10,000.
-After a winning trade of $1000, I want the value of the input parameter to change to 11,000.
-The GOAL is to make a parameter that holds a value even if I disable/enable the strategy and even close and re-open the ninjatrader.
-Currently I can see that if I change manually the input parameter it is being remembered even if I disable/enable the strategy and even close and re-open the ninjatrader.
I want to create the ability that it automatically updates and being saved...
Thanks in advance!!!
Comment