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

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

程序化最后2個問題 [金字塔]

  • 咨詢內容:

    請教:程序化最后問題:“關注問題1、2”

    1、固定止損:3個點
       系統(tǒng)“自動移動止盈”:如果賺了3個點,自動設置止盈0.4,
                             如果賺了5個點,自動設置止盈:把0.4改為2,
                             如果賺了10個點,自動設置止盈:把2改為5,


    v_2013_min1:=stkindi('','公式1.var2013',0,1);
    v_2013_min5:=stkindi('','公式1.var2013',0,2);
    v_2013_min15:=stkindi('','公式1.var2013',0,3);
    v_2014_min1:=stkindi('','公式1.var2014',0,1);
    v_2014_min5:=stkindi('','公式1.var2014',0,2);
    v_2014_min15:=stkindi('','公式1.var2014',0,3);
    if v_2013_min1 or v_2013_min5 or v_2013_min15 then tbuy(tbuyholding(0)=0,1,mkt);
    if v_2014_min1 or v_2014_min5 or v_2014_min15 then tbuyshort(tsellholding(0)=0,1,mkt);//滿足任意一個條 件后開倉{上述經(jīng)測試沒有問題}
    if tenterprice-dynainfo(7)>3 and tbuyholding(0)>0 then tsell(1,0,mkt);
    if dynainfo(7)-tenterprice>3 and tsellholding(0)>0 then tsellshort(1,0,mkt);//固定止損{問題1、此處有盈 利2-3個點系統(tǒng)會自動平倉}


    if hhv(h,tenterbars+1)-tenterprice>3 and hhv(h,tenterbars+1)-dynainfo(7)>=0.4 and tbuyholding(0)>0 then  tsell(1,0,mkt);
    if hhv(h,tenterbars+1)-tenterprice>5 and hhv(h,tenterbars+1)-dynainfo(7)>=2 and tbuyholding(0)>0 then  tsell(1,0,mkt);
    if hhv(h,tenterbars+1)-tenterprice>10 and hhv(h,tenterbars+1)-dynainfo(7)>=10 and tbuyholding(0)>0 then  tsell(1,0,mkt);

    if tenterprice-llv(l,tenterbars+1)>3 and dynainfo(7)-llv(l,tenterbars+1)>=0.4 and tsellholding(0)>0  then tsellshort(1,0,mkt);
    if tenterprice-llv(l,tenterbars+1)>5 and dynainfo(7)-llv(l,tenterbars+1)>=2 and tsellholding(0)>0 then  tsellshort(1,0,mkt);
    if tenterprice-llv(l,tenterbars+1)>10 and dynainfo(7)-llv(l,tenterbars+1)>=10 and tsellholding(0)>0  then tsellshort(1,0,mkt);//移動止盈{問題2:上述賺錢了,會自動平倉,程序沒有按要求去執(zhí)行}

     

  • 金字塔客服: v_2013_min1:=stkindi('','公式1.var2013',0,1);
    v_2013_min5:=stkindi('','公式1.var2013',0,2);
    v_2013_min15:=stkindi('','公式1.var2013',0,3);
    v_2014_min1:=stkindi('','公式1.var2014',0,1);
    v_2014_min5:=stkindi('','公式1.var2014',0,2);
    v_2014_min15:=stkindi('','公式1.var2014',0,3);
    if v_2013_min1 or v_2013_min5 or v_2013_min15 then tbuy(tbuyholding(0)=0,1,mkt);
    if v_2014_min1 or v_2014_min5 or v_2014_min15 then tbuyshort(tsellholding(0)=0,1,mkt);//滿足任意一個條 件后開倉{上述經(jīng)測試沒有問題}
    if tenterprice-dynainfo(7)>3 and tbuyholding(0)>0 then tsell(1,0,mkt);
    if dynainfo(7)-tenterprice>3 and tsellholding(0)>0 then tsellshort(1,0,mkt);//固定止損{問題1、此處有盈 利2-3個點系統(tǒng)會自動平倉}


    if hhv(h,tenterbars+1)-tenterprice>3 and hhv(h,tenterbars+1)-dynainfo(7)>=0.4 and tbuyholding(0)>0 then  tsell(1,0,mkt);
    if hhv(h,tenterbars+1)-tenterprice>5 and hhv(h,tenterbars+1)-dynainfo(7)>=2 and tbuyholding(0)>0 then  tsell(1,0,mkt);
    if hhv(h,tenterbars+1)-tenterprice>10 and hhv(h,tenterbars+1)-dynainfo(7)>=5 and tbuyholding(0)>0 then  tsell(1,0,mkt);

    if tenterprice-llv(l,tenterbars+1)>3 and dynainfo(7)-llv(l,tenterbars+1)>=0.4 and tsellholding(0)>0  then tsellshort(1,0,mkt);
    if tenterprice-llv(l,tenterbars+1)>5 and dynainfo(7)-llv(l,tenterbars+1)>=2 and tsellholding(0)>0 then  tsellshort(1,0,mkt);
    if tenterprice-llv(l,tenterbars+1)>10 and dynainfo(7)-llv(l,tenterbars+1)>=5 and tsellholding(0)>0  then tsellshort(1,0,mkt);

     

     

    之前說的是贏了10點止盈10點,所以我才這樣寫,后來又說是5點,我也改過了,

    現(xiàn)在再改一次

 

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 日本乱中文字幕系列在线观看 | 正在播放亚洲一区 | 免费不卡中文字幕在线 | 亚洲性激情 | 国产大战女模特在线视频 | 久久免费看| 一本到中文字幕高清不卡在线 | 亚洲欧美高清视频 | 成人a网站 | 在线日韩不卡 | 亚洲国产二区 | 14一15sexvideo日本 | 在线观看国产视频 | 国产精品久久久久久网站 | 中文字幕伦视频 | 国产成人亚洲精品老王 | 乱人伦中文字幕在线看 | 国产精品久久久久尤物 | 国产视频手机在线观看 | 亚洲欧美日韩中文高清一 | 在线观看日本免费不卡 | 日本免费一区二区久久人人澡 | 午夜国产福利在线观看 | 99精品网 | 特黄aaaaaaaaa真人毛片 | 国产精品全国探花泡良大师 | 国产一级毛片欧美视频 | 老司机午夜影院 | 午夜狠狠操 | 亚洲sss综合天堂久久久 | 桃子在线观看 | 日本日日黄 | 久久国产午夜精品理论片34页 | 99热亚洲 | 四虎影院在线观看网站 | 天天干天天操天天做 | 亚洲sss综合天堂久久久 | 婷婷在线视频国产综合 | 又粗又大的机巴好爽欧美 | 国产欧美日韩精品专区 | 欧美一区二区三区视频在线 |