I am trying to figure out how to automate on a strategy only during certain hours. I want the chart to run 24 x 7 to get the technical indicators to plot around the clock, so I have the chart setup from 12 AM to 12 AM to read data, however I am unable to get the time data "set" criteria formatted correctly within the strategy.
As an example, let's say I only want the strategy to work from 8 AM to 9 AM.
Is there a code example for the Ninja Script language available?
Thank you,
Trader Tom
Comment