Arrow appears after refreshing window everytime

 
Can anyone have idea why this is happened to me? I am new to MQL and created an indicator to show arrow at specific combination of the candles. It appears correct for the past history but for the upcoming candles it requires refresh window. What could be the reason?
 
jrbhatt:
Can anyone have idea why this is happened to me? I am new to MQL and created an indicator to show arrow at specific combination of the candles. It appears correct for the past history but for the upcoming candles it requires refresh window. What could be the reason?
Coding error(s). Please show your code if you need help.
 
Don't double post
 
WHRoeder:
Don't double post
Thank you, I will remove current topic.
Reason: