大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內容

求助:將程序修改為連虧兩次就停止買賣30分鐘,30分鐘后再虧一次又停止買賣30分鐘?可以嗎?謝了 [金字塔]

  • 咨詢內容:

    //2013-09-01

    variable:HigherAfterEntry=0,LowerAfterEntry=999999;


    input:n1(3,1,30,1);
    input:n2(24,5,40,1);
    input:n3(90,50,100,5);
    input:n4(1,1,4,1);
    input:n5(68,50,100,5);
    input:n6(2,1,30,1);
    input:n7(13,3,30,1);
    input:n8(13,3,30,1);


    open5_1:callstock('',vtopen,2,-1);//5分鐘周期的開盤價
    close5_1:callstock('',vtclose,2,-1);//5分鐘周期的收盤價

    open3_1:callstock('',vtopen,17,-1);//3分鐘周期的開盤價
    close3_1:callstock('',vtclose,17,-1);//3分鐘周期的收盤價

    vols20_1:=callstock('',vtvol,22,20);//20秒周期的成交量
    vol1_1:=callstock('',vtvol,1,-1);//1分鐘周期的成交量

    avvol:ma(ref(vol,2),5),noaxis,linethick0;
    dayopen:=valuewhen(date<>ref(date,1),open);

    開盤價:=dayopen,noaxis,linethick0;
    成交量:=REF(vol,1),noaxis,linethick0;

    if date<>ref(date,1) then
    begin

    loss:=0; //限制開倉方式一,只開一次
    count1:=1;
    count2:=1;

    end

    計數一:=count1,noaxis,linethick0;
    計數二:=count2,noaxis,linethick0;
    計數三:=loss,noaxis,linethick0;

    h_1:=ref(h,1);
    l_1:=ref(l,1);

    c_1:=ref(c,1);

    o_1:=ref(o,1);

    vol_1:=ref(vol,1);

    vol_2:=ref(vol,2);

    vol_3:=ref(vol,3);

    vol_4:=ref(vol,4);

    sumvol:vol_2+vol_3+vol_4,noaxis,linethick0;

    lots:=1;

     
     If enterbars=0 then
     begin
     HigherAfterEntry:=enterprice;
     LowerAfterEntry:=enterprice;
     end;
    else If enterbars>=1 then
     begin
     HigherAfterEntry:=max(HigherAfterEntry,h_1);
     LowerAfterEntry:=min(LowerAfterEntry,l_1);
     end;
     hh:HigherAfterEntry,noaxis,linethick0;
    ll:LowerAfterEntry,noaxis,linethick0;


     
     if holding>0  and  l<=ENTERPRICE-n2
     
     then 
     begin
     sell(1,holding,limitr,enterprice-n2),IGNORECHECKPRICE;

     end
     
     if holding<0  and  h>=ENTERPRICE+n2
     then 
     begin
     sellshort(1,holding,limitr,enterprice+n2),IGNORECHECKPRICE;

     end
     
      

     
     if  holding=0  and count2=1 then
     
     begin
     
     if *************************
     then
     begin
     buy(1,lots,limitr,open),IGNORECHECKPRICE;
     HigherAfterEntry:=enterprice;
     LowerAfterEntry:=enterprice;
    end
     
     end
     
     
      if  holding=0  and count2=1
     
     then
     
     begin

     if  ***************************
     then
     begin
      buySHORT(1,lots,limitr,open),IGNORECHECKPRICE;
     HigherAfterEntry:=enterprice;
     LowerAfterEntry:=enterprice;
       end
      
     end
     
     
     //再次開多單的平倉
     
     if holding>0 and enterbars>0  then
     
     begin
     
     
     if  enterbars>=1   and *****************
     then
     begin
     price:=EnterPrice+(HigherAfterEntry-EnterPrice)*n5/100;
     if low<=price then
     begin
     sell(1,holding,limitr,min(open,price)),IGNORECHECKPRICE;
     count2:=1;
     end;
    end
     
     
     
     
    //再次開空單的平倉
     
     if holding<0 and enterbars>0  then
     
     begin
     
        if  enterbars>=1   and *****************************
     then
     begin
     price:=EnterPrice - (EnterPrice-LowerAfterEntry)*n5/100;
     if high>=price then
     begin
     sellshort(1,holding,limitr,max(open,price)),IGNORECHECKPRICE;
      count2:=1;
     end;
     end;
     
     

     

     

  • 金字塔客服:

    30分鐘后無論開倉條件是否滿足都要開倉?

    這個策略用在哪個周期上?

     

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 1145508240  有需要幫忙請點擊這里留言!!!進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 四虎永久精品免费观看 | 国产美女做爰免费视 | 狠狠香蕉 | 模特啪啪| 中国美女一级a毛片录像在线 | 视频一区日韩 | 99在线免费| 欧美成人性生活视频 | 国产精品久久自在自线观看 | 天天拍拍天天爽免费视频 | 欧美video巨大粗暴18 | 99尹人香蕉国产免费天天拍 | 99这里只有精品66视频 | 操片免费 | 四虎成人欧美精品在永久在线 | 国产在线拍 | 久久青 | 久久精品中文字幕有码日本 | 精品玖玖玖视频在线观看 | 天天做天天爽爽快快 | 福利免费观看 | 一区二区三区在线免费观看视频 | 美女被爆羞羞网站 | 一区二区不卡久久精品 | 精品久久久久久综合日本 | 日本免费黄色小视频 | 亚洲国产欧美国产综合一区 | 日本三级11k影院在线 | 精品国产福利 | 在线观看中文字幕亚洲 | 人人鲁免费播放视频人人香蕉 | 97欧美| 久久综合色视频 | 奇米777在线| 98色花堂国产精品首页 | 奇米777狠狠 | 男女啪啪猛烈免费网站 | 神马我我不卡伦影视 | 日韩毛片在线影视 | 99国产欧美久久精品 | 成人亚洲欧美日韩在线观看 |