nn:=taccount(28)
if nn-100000>5000 then tsell(1,(n-100000)/close,mkt);
if 100000-nn>5000 then tbuy(1,(100000-n)/close,mkt);
要计算股票市值的话就必须要后台了,
nn:=taccount(28)
if nn-100000>5000 then tsell(1,(n-100000)/close,lmt,DYNAINFO( 34));
if 100000-nn>5000 then tbuy(1,(100000-n)/close,lmt,DYNAINFO( 28));