?
GLOBALVARIABLE:n=0,asset_me=0;if n=0 then beginasset_me:=tasset;n:=1;end
asset_me就是第一次運行時候的資金,你拿tasset和他做比較就可以了