Repaint indicator to non repaint

 

Please tell me how to repaint indicator convert to non repaint .

Thank you. 

 
ysrimal:

Please tell me how to repaint indicator convert to non repaint .

Thank you. 

Hello ysrimal, there is no "magic rule" for that ... Some indicators cannot be modified, so it won't repaint anymore. So, it depends entirely on the internal logic of the indicator.

Regards,
Malacarne 

 

Look inside the main loop.

The most of the repainting come from bad loops that recalculate the buffers or using the current bar (bar 0) or even bar -1 (which is never exist).

Reason: