Indicator didn't display the arrow until I refresh the chart and reload the indicator...

 

Hi coder,... Hope all is well

I have made an indicator that uses buffers to display arrow up and down,.. Having complex code around 1200 lines

The problem is that when the indicator loaded to the chart and new data comes from server, and conditions meets on some candle for the up arrow,.. The arrow is not display by the indicator but just when I change the timeframe and then comes back to previous period or reload the indicator then the arrow appear on that candle,.. no matter how much candles previously finished that candle.

The indicator is for MT4,..

So which function can I use to overcome this issue

 

You don't use a function to overcome the issue. You have to correct the error(s) in your code.

I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.

In future please post in the correct section.

I will move your topic to the MQL4 and Metatrader 4 section.

 
Your indicator is broken if you have to refresh. See How to do your lookbacks correctly.