I am trying to write a study that updates only when a new high or low of the current bar is made. But the study keeps updating on every tick, which uses a lot of CPU. What is the syntax for a study to update only on a new high or new low of the current bar?
Thanks in advance.
Thanks in advance.
Comment