You have few solutions:
1. limit the number of bars in history so it loads faster
2. make sure not to draw the same objects several times
3. update indicator only when a new bar closes
4. use buffers
Yashar Seyyedin #:
You have few solutions:
1. limit the number of bars in history so it loads faster
2. make sure not to draw the same objects several times
3. update indicator only when a new bar closes
4. use buffers
I choose 4. use buffers
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I want to DRAW_COLOR_LINE if
Currently its being done using OBJ_TREND objects which make chart laggy and slow and load objects slow sometimes so i want to do this using buffer
any coding help will be really helpful
Example :![](https://c.mql5.com/3/412/4396943249828.png)