圖表交易請幫忙改為后臺,我改的后臺不交易?!金字塔]
-
咨詢內容:
圖表交易請幫忙改為后臺。改后臺不交易。
//平多空單
?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 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容