Variable values from Indicator are not the same as those in EA New comment [Deleted] 2009.03.05 00:17 I have one indicator. There are three variables, which are important for drawing a line on a chart on every bar. I wrote an EA, which calls indicator with iCustom function: iCustom(NULL, 0, "Name of indicator",parameter1, parameter2,...,0,0) iCustom(NULL, 0, "Name of indicator",parameter1, parameter2,...,1,0) iCustom(NULL, 0, "Name of indicator",parameter1, parameter2,...,2,0) for the 3 important variables. I print them on every tick (shift 0 in iCustom). So, indicator draws a line on every bar, EA prints variables on every thick. When I put a mouse on the chart, I can see indicator's variables in data windows. Question: Why are those variables not the same as those, printed on every tick (slitely difference)? I compare printed values of ticks close to end of one bar and start of a new bar with those on indicator. Using Custom Indicator in EA (MT4) EA using indicator iCustom Question New comment
I have one indicator. There are three variables, which are important for drawing a line on a chart on every bar.
I wrote an EA, which calls indicator with iCustom function:
iCustom(NULL, 0, "Name of indicator",parameter1, parameter2,...,0,0)
iCustom(NULL, 0, "Name of indicator",parameter1, parameter2,...,1,0)
iCustom(NULL, 0, "Name of indicator",parameter1, parameter2,...,2,0)
for the 3 important variables.
I print them on every tick (shift 0 in iCustom).
So, indicator draws a line on every bar, EA prints variables on every thick.
When I put a mouse on the chart, I can see indicator's variables in data windows.
Question: Why are those variables not the same as those, printed on every tick (slitely difference)?
I compare printed values of ticks close to end of one bar and start of a new bar with those on indicator.