I am coding up a strategy that operates on a 1-minute bar chart on US stocks. My strategy requires the chart cover pre and after market hour bars (to update my data model) but I am looking to only trade during regular trading hours. (i.e., 930a - 4p or 930a - 1p US Eastern for full and half trading days). I cant seem to find a way to detect regular trading hour window for a given trading day. The option to use a SessionIterator doesn't seem helpful as it seems to be a way to read the Trading Hours setting of the chart (which in my case is set to default 24x7).
Is there a way in NinjaScript to accomplish my need?
Thanks!
Comment