I am trying to develop a strategy that performs certain code at 9:30 am EST everyday. Normally I use Time[0].Hour == 9 && Time[0].Minute == 30 but my client uses Pacific Time on his machine so the timing is off. I tried using TimeZone Conversion but for some reason it is not working correctly. Let me know what I am doing wrong.
This is my code:
Print(Bars.TradingHours.TimeZone);
It is showing up as Central Standard Time.
My computer is EST and my Ninja is EST
I am running on NQ Daily if that makes a difference. Just trying to figure out how to get the current NinjaTrader Platform TimeZone (aka what the bars are displaying on the chart)
Thanks in advance
Comment