I have a simple question about coding
I want to enter the buy trade when candle number one is green, that's why I wrote this simple piece of code
if ((Close[1] > Open[1])
&& (Position.MarketPosition == MarketPosition.Flat))
{
EnterLong(Convert.ToInt32(Contract), "");
}
But when I look at the chart, sometimes it is entered buy trade when candle number one is red.
Am I missing something or is there a problem with My Ninja Trader?
If im wrong please correct me
Thanks

Comment