Forum

Indicator is different in the tester than chart

Hello, I wrote a simple indicator that draws the day's High and Low (useful on timeframes smaller than D1). When I attach the indicator to a chart, it correctly identifies the change of the day at 00:00. The issue is that the indicator, when used in the tester, seems to reset itself twice daily, at

Large differences in historical prices when the referenced symbol is not on the main chart

I want to read the close prices of a pair that is not on the main chart. I have used extern string ref_Symbol = "EURUSD"; and then (inside Start() and inside the loop) PairQuote[i] = iClose(ref_Symbol, 0, i) to read the close price i periods back. The problem is that I get different prices