M1:=3;
a:=SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSE
b:=capital;
aa:=90+(100-90)/2;
bb:=(100-90)/2;
cc:=cost(aa);
dd:=cost(bb);
ee:=(cc-dd)/(cc+dd)*100;
zlnl:(a/b*(VOL/3)/b+ee)/100;
K:SMA(zlnl,M1,1);
M1:=3;
a:=SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSE
b:=capital;
aa:=90+(100-90)/2;
bb:=(100-90)/2;
cc:=cost(aa);
dd:=cost(bb);
ee:=(cc-dd)/(cc+dd)*100;
zlnl:(a/b*(VOL/3)/b+ee)/100;
K:SMA(zlnl,M1,1);