I code a triple crossover system according to your statement in the thread and the attached file, as follows:
Inputs:slen(10),mlen(20),lLen(50);
variables: sma(0.0),mma(0.0),Lma(0.0);
sma=XAverage(close,slen);
mma=XAverage(close,mlen);
lma=XAverage(close,llen);
if sma>mma and mma>lma then...