Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi,
It seems a problem (or maybe not) when NT7 is working with IB as data-feed.
I've tried to work with NT Support team but can't get it resolved.
My local time zone is UTC+8.
When I plot the chart, I noticed that the time on the chart is using local PC clock time.
For equities, the chart shows 9.30pm (today) to 4am (the next day).
I'm using session template "US Equities RTH" with "The sessions are based on the following time zone ..." set as UTC-5.
I noticed that the data retrieved from IB stored in the Historical Data Manager also used the local PC clock time.
I want both the chart & data collected from IB to show exact EST. Can I do it?
I've worked with NT support team & their solution is to set my local PC clock time to EST.
Please advise if there is another way to do it without touching my local PC clock time.
I'm concerned whether the data loaded from IB using local PC clock time will have any implication when I use them for backtesting, strategy development, etc. Hence, I would like the data with exchange time captured.
I've tried the following options & they didn't work too.
1. I've copied the "US Equities RTH" template & changed the time zone to UTC+8.
Result: Chart not populated with any bar.
2. I've copied the "US Equities RTF" template & changed the 5 trading days as
Mon 9pm to Tue 4am
Tue 9pm to Wed 4am
:
Fri 9pm to Sat 4am
Time zone set to UTC-5 (EST)
Result: Chart not populated with any bar.
3. Same as (2) except time zone set to UTC+8
Result: Chart shows local PC clock time again. The data loaded in Historical Data Manager is also using local PC clock time again.
Hi, I'm opening unofficial NT8 wish list thread! Since Ray has been so good to us with his presentations etc, I thought we'd compile a list and pass it on to Ray through BM.
This is correct. The US currently has summertime, so the difference with UniversalTime is reduced to 4 hours. As your UTC + 8, the total difference between US and you is 12 hours, and the US stock market opens at 9:30 PM your time.
NinjaTrader always stores data by using timestamps of your local time. This is in fact a very bad choice, for several reasons
-> in case that your local time switches from summertime to wintertime and the exchange time does not, you will get two bars with the same timestamp
-> you cannot share your data easily with somebody located in a different time zone
But things are as they are, so we have to accept it.
The only way you can do that with NinjaTrader is to set your system clock to EST.
If you use local time, there will be now implication on backtesting and strategy development. However, if you use time filters, you would need to use exchange time and then convert it to local time. This is not difficult to do with NinjaScript, see below.
Do not play around with templates, in the end you will make things worse. The template ALWAYS AND WITH NO EXCEPTION needs to use exchange time. If you do not follow this rule you will run into daylight savings and other issues. Never use the template 24/7, never use the template 24/5. They are useless. Store the appropriate template for each instrument and save it under instrument settings, only use charts with instrument settings.
If you follow this rule all your strategies and backtests will work correctly.
The only thing that you need to pay attention to is time filters. You strategy runs in local time. The logic of your timefilter needs to follow exchange time, so you need to convert those times.
Example: In a strategy you only want to enter a trade between 9:30 AM and 11:30 AM or 2:00 PM and 3:45 PM exchange time. Now you cannot simply add 13 hours to the time window in exchange time and then use the result in local time. This will fail, because the time difference between EST and your timezone is 12 hours in summer, but 13 hours in winter. Your backtest will go wrong.
NinjaScript provides an easy way of converting the exchange time windows to your local time. The method reads
Enter the time filters in exchange time and then convert them, and you will not run into issues.
Hi, I'm opening unofficial NT8 wish list thread! Since Ray has been so good to us with his presentations etc, I thought we'd compile a list and pass it on to Ray through BM.
All our trading computers are set to EST. We also have additional computer clocks that show london and HK. It gets me in the mood/mode and makes it a little easier as when they ring the bell at 9:30 and market opens I'm not double checking my time and getting confused. 9:30 is 9:30.