When writing a strategy, I would like to be able to define a "daily loss".
And when the strategy has reached this loss, it should no longer execute any trades.
There is a similar example: https://ninjatrader.com/support/help...ancevalues.htm
But that (example) is the "total loss".
I would like to have the "profit from the current day". (daily loss)
Is there such a function?
How else could I go about this?
Comment