Please someone help me with this formula, it gives me always a flat zero line at results of the system optmization. Thanks in advance J.Carlos Enter long OscV(opt1,opt2,E,%)> 0 AND Ref(OscV(opt1,opt2,E,%),-1) < 0 Enter short OscV(opt1,opt2,E,%)< 0 AND Ref(OscV(opt1,opt2,E,%),-1) > 0 Opt1 min 5 max 40 step 2 Opt2 min 5 max 40 step 2