图表实现不了。只能是后台,监控账户栏持仓,
类似处理方式如下
str_head:=STRLEFT(STKLABEL ,STRLEN(STKLABEL)-2);
string:=STRCAT( str_head,'00');
Main_contract:=DYNAINFO2(210,string);//主力合约
if STRCMP( Main_contract,STRCAT(MARKETLABEL,STKLABEL))<>0 then BEGIN
tsell(TBUYHOLDINGex('',STKLABEL,2)<>0,TBUYHOLDINGex('',STKLABEL,2),MKT);
TSELLSHORT(TsellHOLDINGex('',STKLABEL,2)<>0,TsellHOLDINGex('',STKLABEL,2),MKT);
end