DIfferent calculation value in back test by using iCustome function & running Indicator. why ?!

 

HI.

Why there is different between value?

the value calculated by coding in EA and using iCustum are equal,

but the value by indicator add to chart , is different.

============================================================================================



why ?

i think: the correlation indicator ( attached ) is a multi symbol calculation.

so must add the other chart to market watch inside the Indicator code. ( for mt4 back test)

?!
Files:
 
  1. On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors.
              Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum

  2. Do not assume a shift of the current chart equals the same shift of other charts. Always use iBarShift.
 
whroeder1:
  1. On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors.
              Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum

  2. Do not assume a shift of the current chart equals the same shift of other charts. Always use iBarShift.

Thank you.

Reason: