You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I have an indicator, and part of the code draws trend lines on the chart. There are roughly 200 of these lines on each chart, and i have 12 charts running at once. When I change timeframes, obviously all the trend lines need to be redrawn, and with 12 charts open it its very sluggish.
Is there a more efficient way to get the indicator to draw these lines when the indicator is initialized, without reducing the number of bars back the indicator looks? Here is the piece of code that draws the lines:
Any thoughts appreciated!