Is it possible to develop a script that accesses indicators within the same chart? For a simple example, on a 5min chart I may have a moving average and a stoch indicator (in reality I have many more with some fairly complex/cpu intensive). I would like to create a new indicator that changes the background color of the price bars based on certain mva and stoch conditions.
I understand some of the issues with cross-chart scripting, such as synchronization, but do those issues apply to intra-chart scripting? If not, then could I just make the individual studies global and access their values that way? Well maybe not. I guess there is no way to ensure that the individual scripts have executed on the current tic before aggregating their values.
The only other solution I can come up with is to combine all my indicators into one script for the simple purpose of changing background colors, which seems redundant and may really impact performance.
Any insight or suggestions would be helpful and greatly appreciated.
Thanks,
K.
I understand some of the issues with cross-chart scripting, such as synchronization, but do those issues apply to intra-chart scripting? If not, then could I just make the individual studies global and access their values that way? Well maybe not. I guess there is no way to ensure that the individual scripts have executed on the current tic before aggregating their values.
The only other solution I can come up with is to combine all my indicators into one script for the simple purpose of changing background colors, which seems redundant and may really impact performance.
Any insight or suggestions would be helpful and greatly appreciated.
Thanks,
K.
Comment