不管怎么变都要实现类似上面的分段比较
runmode:0;
if close>3500 and close<3600 then maa:=ma(c,5);
if close>3600 and close<3700 then maa:=ma(c,10);
if close>3700 and close<3800 then maa:=ma(c,15);
if close>3800 and close<3900 then maa:=ma(c,20);
mal:maa;
mal为所求值
那不是和上面一样的套路
runmode:0;
if close>3500 and close<3600 then m:=5;
if close>3600 and close<3700 then m:=10;
if close>3700 and close<3800 then m:=15;
if close>3800 and close<3900 then m:=20;
mmm:ma(c,m);