
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
The relevant part of my code for calculating and displaying the vertical lines is as follows:
Problem:
When the chart is not yet fully loaded (e.g. when the timeframe changes or a new chart is opened), the indicator is automatically removed instead of waiting for enough data to become available.
Questions:
Is this problem due to insufficient data during initial execution?
How can I configure the indicator to not be removed in such situations and wait for enough data to be loaded?
Do I need to use a special method to delay or check the number of loaded candles?
Any tips or code corrections would be appreciated.
Thanks for your time!