I have to configure a strategy which was coded 2 years ago for one of my friend.
The code checks the market position and state with if blocks but I get CS0019 errors when I try to compile. I added the sample codes below.
Code Samples
if (((NinjaTrader.NinjaScript.NinjaScript) this).State == 1) ...
if (((NinjaTrader.NinjaScript.NinjaScript) this).State != 2) ...
if (((StrategyBase) this).Position.MarketPosition != 2) ...
else if (((StrategyBase) this).Position.MarketPosition == 1) ...
I want to learn the property values that I can use instead of 1 and 2.
(Does 1 refer to Historical or Terminated or sth. else for the State? Does 2 refer to MarketPosition.Long or Short or Flat?)
Thanks in advance.

Comment