vars smth1=series(Smooth(Close,12*20)); if(smth1[1]>Close[0]){ smth1[0]=Smooth(Close,6*20); }
vars smth1=series(1.); smth1[0]=Smooth(Close,12*20); if(smth1[1]>Close[0]){ smth1[0]=Smooth(Close,6*20); }
vars smth1=series(1.); if(smth1[1]>Close[0]){ smth1[0]=Smooth(Close,6*20); }else{ smth1[0]=Smooth(Close,12*20); }