My code is fairly simple but nothing happens even if the conditions are met
double level0;
double level1;
if ((level0 < level1)
&& (Close[0] < Close[1])
)
{
ExitLong(Convert.ToInt32(DefaultQuantity), "", "");
}
)
I printed out the level0 & level1 to verify and the data all looks correct.
I checked the Output window and didnt see any exits being sent.
The strategy runs in Volumetric chart if it matters and I have already set the bar type as Volumetric
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe barsType = Bars.BarsSeries.BarsType as NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe; if (barsType == null) return;

Comment