// Condition set 1
if (CrossBelow(GetCurrentAsk(), Open - S1 * TickSize, 1)
&& Open[1] < Close[1]
&& Position.Quantity == 0
&& Bracket == false)
{
EnterLongStop(Q, Open[0], "TSTZLong");
}
Note that S1 is a Private int previously defined.
I am getting code NT0019.: Operator '-' cannot be applied to operands of type "NinjaTraderSata|DataSeries" and "double".
I have also tried:
if (CrossBelow(GetCurrentAsk(), Open (0) - S1 * TickSize, 1)
and got: CS0103: The name 'Open' does not exist in the current context.
I'll appreciate any help.
Thanks Horacio
Comment