
等级: 标准版
- 注册:
- 2021-6-1
- 曾用名:
|

楼主 |
发表于 2021-6-2 10:06
|
显示全部楼层
好吧再试试这个,还有个问题请老师看看这个程序,总是重复下单s手,问题出在哪里了
pd:=cross(ma2,ma1);
pk:=cross(ma1,ma2) ;
kd:=cross(ma3,ma4);
kk:=cross(ma4,ma3) ;
if 多头止损线 then
begin
sell(1,holding,limitr,c-t*MINDIFF);
buyshort(holding=0,s,market);
end
if 空头止损线 then
begin
sellshort(1,holding,limitr,c+t*MINDIFF);
buy(holding=0,s,market);
end
平多1:SELL(PD,s,THISCLOSE); //平多信号
平空1:SELLSHORT(PK,s,THISCLOSE); //平空信号
开多1:BUY(KD AND HOLDING=0,s,THISCLOSE); //开多信号
开空1:BUYSHORT(KK AND HOLDING=0,s,THISCLOSE); //开空信号
|
|