I can not write this simple code:
private double a = 0;
private double sig = 0;
private int gg = 5;
....
a = Median[0] - SMA(SMA(Median(), gg)[0], 2*gg)[0] ;
sig = SMA(A,2*gg);
if ( a > sig )
GoLong();
if (sig < a)
GoShort();
It gives me an error on the allocation of the argument of Sma
that must be "data id" tipe.
how can I solve the problem?
Tanks
Comment