Next, I have 1 master indicator that needs to use the calculated output of each of these 5 indicators to come to it's own calculated output value.
Is there a way to avoid having these 5 indicators process twice per bar (once for the instance that is running in the chart and once for the instance that is used in the master indicator)?
In other words, from a programmers point of view, I would like to code the logical equivalent of a Singleton to handle certain calculations and then reuse the singletons output in multiple places.
Are there any coding recommendations or samples of a Singleton pattern used in the Ninja environment?
Thanks,
Gary
Comment