Hi
I am trying to pass values from my signal to an indicator, using the Global Variables.
In the signal i setup:
Code: Select all
AccuracySetNamedDouble("ema1", emaS);
To retrieve the the value in use the following line in the indicator:
Code: Select all
value1 = AccuracyGetNamedDouble("ema1");
While compiling the signal, everything is fine. However trying to compile the indicator the following error is thrown. The error is easy enough to understand, however it doesn't make sense as the retrieval of Global Variables do NOT require 2 parameters accoring to the documentation.
Code: Select all
------ Compiled with error(s): ------
Invalid number of parameters. 2 parameter(s) expected
line 2, column 9
Line 2 is where the aforementioned code is placed.
Any and all input is welcome.