Hello, I am an Algorithimic Trading Expert, with 5 years of experience in all forex coding and other programming. I am well skilled and experienced with Trading BOT, Metatrader (MT4/5) with various EA & indicators, pinescript, CTrader, Sierra Chart, Ninjatrader (NT7/8), and Amibroker. I have done a lot of work on all the listed trading platforms and will be honored to help you with your requirements.
I am sure that what you are experiencing is Repainting, I am sure that I can fix this script and I could also help you learn about this issues so that you wont have encounter this type of situation again.
Kindly share more details of your project with me over chat. Thanks