等级: 专业版
- 注册:
- 2022-1-11
- 曾用名:
|
1分钟以上周期K、线。
信号执行方式——轮询:LL:=CALLSTOCK(STKLABEL,VTLOW,1,-1);
LH:=CALLSTOCK(STKLABEL,VTHIGH,1,-1);
LO:=CALLSTOCK(STKLABEL,VTOPEN,1,-1);
LC:=CALLSTOCK(STKLABEL,VTCLOSE,1,-1);
NL:=CALLSTOCK(STKLABEL,VTLOW,1,0);
NH:=CALLSTOCK(STKLABEL,VTHIGH,1,0);
NO:=CALLSTOCK(STKLABEL,VTOPEN,1,0);
NC:=CALLSTOCK(STKLABEL,VTCLOSE,1,0);
BuyP:=LH;
M2:SMA(OPEN,p2,1);
SP00:=RANGE(BuyP,L,H);
SP01:=REF(OPENPROFIT<0,1)&&OPEN>M2;
SP10:(SP00||SP01) and holding<0,NODRAW;
SK10:exitbars<>0&&OPEN<M2&&(RANGE(BuyP,NL,NH)) ,NODRAW;//
if SP10=1 then BEGIN
//Tsellshort(1,holding,LMT,BuyP,0);//平多
sellshort(1,holding,LIMITR,BuyP);//平多
end
if SK10=1 then BEGIN//
//Tbuyshort(1,holding,LMT,BuyP,0);//平多
buyshort(1,Lots,LIMITR,BuyP);//测试状态用
end
补充内容 (2022-11-13 15:56):
修订:
SP00:=RANGE(BuyP,L,H); 为:
SP00:=RANGE(BuyP,NL,NH); |
|