欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。
runmode:1;
account:='888888';
lots:=volunit*10;
pb:=close/finance(34);roe:=finance(37);
entrylongcond:=pb<3 and roe>8;exitlongcond:=pb>3 or roe<8;
if tbuyholdingex(account,stklabel,1)=0 then begin if entrylongcond then tbuy(1,lots,lmt,close,0,account,stklabel); end
if tbuyholdingex(account,stklabel,1)>0 then begin if exitlongcond then tsell(1,lots,lmt,close,0,account,stklabel); end