我这样写似乎锁不住最大回撤的数值,可否帮我改一下
as:extgbdata(taccount( 1));//记录资产的全局变量
//始终记录最大的动态权益
if tholdcount('')>0 and taccount( 6)>as AND taccount( 6)>REF(taccount( 6),1) then
begin
extgbdataset(taccount( 1),taccount( 6));
end
as:=extgbdata(taccount( 1));
if tholdcount('')=0 then //如果没有持仓了,清空掉之前的数据
begin
extgbdataset(taccount( 1),0);
end