protectedoverridevoid OnBarUpdate()
{
int Sigval =FunctionShort();
if (Sigval =1)
EnterShort();
}
where FunctionShort is an indicator that I wrote using the wizard which works fine when applied to a chart. It has no inputs and it plots a bar whenever it encounters a pattern.
When I compile the above strategy I get the following errors and don't know why really.
Cannot implicitly convert type 'NinjaTrader.Indicator.FunctionShort' to 'int',Strategy\Strat86.cs,42,16,
Cannot implicitly convert type 'int' to 'bool',Strategy\Strat86.cs,43,8,
I can declare Sigval as any kind of variable, I tried them all, I always get the error message regarding FunctionShort.

Comment