图表交易请帮忙改为后台,我改的后台不交易。 [金字塔]
-
咨询内容:
图表交易请帮忙改为后台。改后台不交易。
//平多空单
if holding>0 and enterbars>1 and L<=zs then
BEGIN
MyTPrice :=IF(OPEN<zs,OPEN,zs);
sell(1,ss,LIMIT,MyTPrice-MINDIFF);
END
if holding<0 and enterbars>1 and H>=zs THEN
BEGIN
MyTPrice :=IF(OPEN>zs,OPEN,zs);
sellshort(1,ss,LIMIT,MyTPrice+MINDIFF);
END
//开多单
IF H>=UpperBand and BLIQCON and THOLDING=0 THEN
BEGIN
MyPrice :=IF(OPEN>UpperBand,OPEN,UpperBand);
buy(1,ss,LIMIT,MyPrice+MINDIFF);
zs:=Mdg;
maxhl:=h;
END
//开空单
IF L<=LowerBand and SOPCON and THOLDING=0 THEN
BEGIN
MyPrice :=IF(OPEN<LowerBand,OPEN,LowerBand);
buyshort(1,ss,LIMIT,MyPrice-MINDIFF);
zs:=Mdd;
maxhl:=l;
END
if Tholding<0 and l<maxhl then begin //重新定位离场实现浮动止损止盈
zs:=Mdd;
end
if Tholding>0 and h>maxhl then begin
zs:=Mdg;
end -
金字塔客服:
if tholding>0 and tenterbars>1 and L<=zs then
BEGIN
MyTPrice :=IF(OPEN<zs,OPEN,zs);
tsell(1,ss,Lmt,MyTPrice-MINDIFF);
END
if tholding<0 and tenterbars>1 and H>=zs THEN
BEGIN
MyTPrice :=IF(OPEN>zs,OPEN,zs);
tsellshort(1,ss,lmt,MyTPrice+MINDIFF);
END
//开多单
IF H>=UpperBand and BLIQCON and THOLDING=0 THEN
BEGIN
MyPrice :=IF(OPEN>UpperBand,OPEN,UpperBand);
tbuy(1,ss,lmt,MyPrice+MINDIFF);
zs:=Mdg;
maxhl:=h;
END
//开空单
IF L<=LowerBand and SOPCON and THOLDING=0 THEN
BEGIN
MyPrice :=IF(OPEN<LowerBand,OPEN,LowerBand);
tbuyshort(1,ss,lmt,MyPrice-MINDIFF);
zs:=Mdd;
maxhl:=l;
ENDif Tholding<0 and l<maxhl then begin //重新定位离场实现浮动止损止盈
zs:=Mdd;
end
if Tholding>0 and h>maxhl then begin
zs:=Mdg;
end
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容