欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。
variable:a1=0;
variable:a2=0;
r1:=ma(c,5);
r2:=ma(c,10);
if cross(r1,r2) and a1=0 then
begin
sellshort(1,1,thisclose);
buy(holding=0,1,thisclose);
end
if holding>0 and 止损条件 then
sell(1,1,thisclose);
a1:=1;
注意:a1,a2要翻转使用,即满足做多时要把a2置零,满足做空时要把a1置零。