I am familiar with NinjaScript (indicator programming) and went through most of the documentation, and but I am unable to figure out in the documentation how to detect open positions (manually) for a particular contract.
Assume, I manually opened a position - say BUY 1 contract of ES.
Now, I want this position to be tracked using my exit ATM strategy on 1-hour chart. If the price moves by more than 2 standard deviations during the current candle (Current Price - candle Open Price is greater than 2 standard deviations) then the manually opened positon must be closed.
How do I proceed ? In my NinjaScript code, how do I find all open positions ?
Comment