I have managed to add a property that allows me to load up the trading hours object - I can choose to use whatever the instrument uses, or set it to something specific. However I am unsure how to take a TradingHours object and use it to see if a bar is within a legit session. For example if I only want the indicator to work using RTH but the instrument is set by default to ETH, then I am not sure how to check that a bar is legal based on its time and this TradingHours object.
I did some scouring but I couldnt find what I was looking for before posting.
Many thanks,
Nick.
Comment