The help guide about EngerLong doesn't describe what order price EnterLong is based on. I assume that it is market order. Backtesting, I found the price of EnterLong is equal to Close[0].
But when an OnBarUpdate is triggered, actually the first tick of next bar has already been created. right? At that moment, what does Close[0] mean?
Particularly, how much is the Close[0] if Close[0] is in the EngerLongLimit command?
I am wondering what is the difference in order price between EnterLong and EnterLongLimit?
Are the following two equal to each other?
EnterLong(1);
EnterLongLimit(0, true, 1 , Close[0], "Long");
If we set CalculateOnBarClose = true; when the EngerLongLimit in OnBarUpdate() triggers, is the Close[0] actually equal to currentbar's close price or
the open price of next bar?
Comment