I am trying to compare 5 EMA values from a 10 min chart on a 3 min chart using
EMA(BarsArray[1], period)[0];
However, I notice that I am getting different values from the dialog box (when I right click) compared to when I use the print command. This does not happen when I compare say EMA(5)[0].
I've experimented with COBC = false also tried FirstTickOfBar but there is definitely a discrepancy between the dialog box and the print command. So am I missing something with this multi?
The indicator displays correctly for me its just a matter of comparing what I see visually...
Attached is the code with a screenshot of the right click and below is a print out:
I am comparing at 9:48 AM. You can see from the chart it should be 2769.63 not 2777.07 as indicated below.
2782.48 09/10/2012 9:39:00 AM
2777.07 09/10/2012 9:42:00 AM
2777.07 09/10/2012 9:45:00 AM
2777.07 09/10/2012 9:48:00 AM
2769.63 09/10/2012 9:51:00 AM
2769.63 09/10/2012 9:54:00 AM
2769.63 09/10/2012 9:57:00 AM
Comment