--------------------------------------------------------------
Input: LenL(3), LenS(3), filename("");
Vars: dummy(0);
Value1 = Average(H,LenL);
Value2 = Average(L,LenS);
If Close < Value2[1] And Close[1] >= Value2[2] then buy next bar Value1+1 point stop;
If Close > Value1[1] And Close[1] <= Value1[2] then sell next bar Value2-1 point stop;
dummy = _SystemQuality(filename, -999999,LenL, LenS, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
--------------------------------------------------------------