Indicator blinking

 
Hi guys, how are you? I have a problem with my custom indicator. My indicator "blinking" in AdmiralMarkets MT5 client. It's weird because everything it's ok in IronFX MT5 client. Do you have any experience with that? Thank you for reply. I uploaded a video to YT as example, here's the link: https://www.youtube.com/watch?v=7BYIR8yM_jE&feature=youtu.be
 

https://www.youtube.com/watch?v=7BYIR8yM_jE&feature=youtu.be

your link error,...but after I Change the last word with Youtube its working.

hahahahaha 

===>>>>  https://www.youtube.com/watch?v=7BYIR8yM_jE&feature=youtube 

.

You very lucky can have blinking price,... hahahahahaha 

 
Dedy_Sucianto:

https://www.youtube.com/watch?v=7BYIR8yM_jE&feature=youtu.be

your link error,...but after I Change the last word with Youtube its working.

hahahahaha 

===>>>>  https://www.youtube.com/watch?v=7BYIR8yM_jE&feature=youtube 

.

You very lucky can have blinking price,... hahahahahaha 

Ouch, thanks for correction. Yeah, not so happy because of that hh
 
I've already solved my problem with blinking. The core of problem was that indicator has only one thread. The for loop with a lot of cycles blocked the main thread and it couldn't redraw. I optimized my code in loops and it figured out everything.
 

so can you please tell me how you, solved the problem?!?

I figured that i somehow to avoid recalculating all the candles again and again, only recalculate some of the latest candles, and it works, but not reliable at all.

Reason: