Need Some Help with my code

 

Hi,

This is my first try in programming a custom indicator, the indicator works, however, it wont refresh until I change the frame then come back to it.

I know it is a logic issue, but I would appreciate any help.

I want it to calculate every bar, however, it will display history bars only, not current one. 

Automated Trading and Strategy Testing
Automated Trading and Strategy Testing
  • www.mql5.com
MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
 
https://www.mql5.com/en/forum/91432/page2#comment_2666762
!!! Helping for free by coding of simple mql4(5) task.
!!! Helping for free by coding of simple mql4(5) task.
  • reviews: 2
  • www.mql5.com
You can write tasks here. Screenshots with examples of what do you want are obligated...
 
Volli:
https://www.mql5.com/en/forum/91432/page2#comment_2666762
Thank you Volli.
 
Fahad3MQL4:
Thank you Volli.

My pleasure.

But next time please post message there.