Hello,
I can't send the last value of an array DomCycle into the periods field.
In a loop, the value of the array stays inside the loop.
So, inside the loop I do a :
VarSet("docy"+1,DomCycle);
and outside the loop I do a :
docy=int(VarGet("docy"+1));
A trace give me the integer of the last value of the array DomCycle.
It seems correct.
However my number is still in an array.
I would like to send the last value of docy into the periods field
like this :
Periods = Param("Periods", docy, 2, 200, 1, 10 );
or
AEMA=EMA(Data ,docy);
This is incorrect too :
Periods = Param("Periods", WriteVal(docy,1.0), 2, 200, 1, 10 );
Error is argument #2 has incorrect type.
I will appreciate help.
Regards