View Full Version : problem
amrita
01-14-2009, 05:28 AM
why EnterLong / ExitLong don't trigger at current bar' current price.where enterlong or exitlong condition satisfied.
NinjaTrader_Bertrand
01-14-2009, 05:36 AM
Hi amrita, welcome to the NinjaTrader support forums. In backtesting strategies will always be processed at the close of each bar. In realtime trading it depends on your CalculateOnBarClose setting, with this set to false it will trigger and enter intrabar.
NinjaTrader_Josh
01-14-2009, 07:16 AM
amrita,
The reason in backtesting that they are filled in the next bar is because the point in time when you evaluated the condition was when you had the close price of that bar. In order to have the close price it means the bar has closed. That means there are no more tradeable locations on that bar and as such the next available trade slot is the open of the next bar.