I am running an automated strategy and have the following code to display the PnL at the top left of screen that aknip assisted me with the previous version a year or two ago on this forum:
Where:
actprice is a variable, and
cumprofittarget is a variable for the user to input the daily profit target in $ after which the strategy ceases taking new trades.
This works very nicely.
What I would like to add to this is extra code to also display at the top left, the number of Positions (i.e. open positions) that show on the Strategies tab of the NinjaTrader Control Center - e.g. 1S, 2S, 3L, 1L, etc. My limited knowledge of coding for NT has led me to hit a wall on this.
It would also be nice to display on the chart the total number of trades and also the percent profitable.
Hopefully someone can suggest something that works.