help fixing code

 
i don't know if this is the right place to post this request

this indicator doesn't refresh automatically  , i have to do it manually and i have to open the indicator and close it again on each bar formation , even simple right click and refresh doesn't work 

i attached a photo contains a before and after manual refresh 

and i attached the script

i would appreciate any help fixing the code 
 

Why you don't place OnTick() function on your code? Meta Trader will refresh or execute function everytime new data/tick come to your graph.

Just put OnTick() function on your code to ensure it always refresh.

//You can put this function on last code.

void OnTick()

{

   Put your code here;

}

 
A Latu #:

Why you don't place OnTick() function on your code? Meta Trader will refresh or execute function everytime new data/tick come to your graph.

Just put OnTick() function on your code to ensure it always refresh.

//You can put this function on last code.

void OnTick()

{

   Put your code here;

}

Indicators use OnCalculate()

EAs use OnTick()

 
can you do Keith , please !!

am not a coder and i don't know anything abut programming 
 
wealth byforex #: am not a coder and i don't know anything abut programming 

MT4: Learn to code it.
MT5: Begin learning to code it.

If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

or pay (Freelance) someone to code it. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)

 
Keith Watford #:

Indicators use OnCalculate()

EAs use OnTick()

Well noted. Thank you for your correction.