indicator shows different result in real chart vs backtest

 

Hi everyone I have an indicator that shows different between in real chart and when backtest.

This one is from real chart,

and this one is from backtest chart,

In the setting menu there's a setting used for higher timeframe. My chart is M15 and the indicator using M60. At first, I thought that because of using a higher timeframe the indicator became repaint (recalculate because of higher timeframe setting) but apparently the indicator would show the exact price and never change. Anyone has ever found the same problem?

 
Luandre Ezra: I have an indicator that shows different between in real chart and when backtest.

So your code is broken. We can't see your broken code.

 
William Roeder #:

So your code is broken. We can't see your broken code.

 I got the indicator at the internet, I only used it in my EA. Does indicator can be displayed different because of my EA?

Reason: