PDA

View Full Version : Close time of the daily Bar


tjincmu
12-09-2009, 03:19 PM
Is there anyway to set the close time of the daily bar to be 4pm instread of 12Am so that indicators that "Calculate on bar close" will calculate the indicator value at 4pm of the current day?

For example, say now it's 5pm the market is close, I would like to see the value of MA(20) including today's price, however the daily bar has not closed with my current NT setting, I have to wait to next day to have MA(20) inclusing today's price.

Thanks a lot

Tjin

NinjaTrader_Josh
12-09-2009, 03:52 PM
tjincmu,

This will be changed in NT7 where the timestamp of the bar will be the ending time of the session.

tjincmu
12-10-2009, 05:30 AM
Thank you.

I want to calculate the value of an indicator such as MA(20) including yesterday's close price before the market open today,

Now the problem is that, even today before the market open, the MA(20) still does Not include the yesterday close price. I am using the Yahoo Daily Data.

Why is the yesterday's bar not closed yet?

NinjaTrader_Bertrand
12-10-2009, 05:46 AM
Unfortunately expected, the daily bar will close as the new day bar opens - for working around this please set calculations to use CalculateOnBarClose = false. This should give you access to the up to date MA value you seek.