人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識(shí)>>正文內(nèi)容

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

  • 咨詢內(nèi)容:

    //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分鐘周期的開盤價(jià)
    close5_1:callstock('',vtclose,2,-1);//5分鐘周期的收盤價(jià)

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

    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);

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

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

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

    end

    計(jì)數(shù)一:=count1,noaxis,linethick0;
    計(jì)數(shù)二:=count2,noaxis,linethick0;
    計(jì)數(shù)三:=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分鐘后無論開倉條件是否滿足都要開倉?

    這個(gè)策略用在哪個(gè)周期上?

     

 

有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 1145508240  有需要幫忙請點(diǎn)擊這里留言!!!進(jìn)行 有償 編寫!不貴!點(diǎn)擊查看價(jià)格!


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 国产大片在线播放 | 成人午夜短视频 | 欧美色欧美亚洲另类二区精品 | 男人午夜禁片在线观看 | 午夜毛片免费看 | 日韩成人小视频 | 精品国产人成亚洲区 | 免费日韩 | 日本深夜福利视频 | 欧美高清一区二区三区欧美 | 人人做人人爽人人爱 | 麻豆国产精品入口免费观看 | 全黄大全大色全免费大片 | 波多野一区二区三区在线 | 黄色片视频在线免费观看 | 国产乱人伦av在线a 国产乱人伦精品一区二区 国产乱人免费视频 | 久久久网站亚洲第一 | 三级黄色日本 | 成人羞羞视频免费 | 一个人看的www视频在线 | 中国国产高清一级毛片 | 最近免费中文字幕mv | 亚洲天堂久久精品成人 | 69国产成人综合久久精 | 黄色a视频在线观看 | 三级在线不卡 | 污黄视频在线观看 | 美女被躁免费视频软件 | 免费99视频有精品视频高清 | 97色在线观看免费视频 | 色天天综合色天天看 | 日本三级网站在线观看 | 日本不卡va | 最近2019好看的中文字幕 | 久久免费精品高清麻豆 | 动漫美女胸被狂揉扒开吃奶动态图 | 亚洲欧美午夜 | h片在线播放免费高清 | 国产黄色免费 | 成人在线观看高清完整免费 | 欧美一区二区三区精品 |