大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频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久久精品综合麻豆 | 黄色一及毛片 | 欧美大片a一级毛片视频 | 思思久久这里只精品99re66 | 九九在线偷拍视频在线播放 | 在线观看免费视频a | 97av视频| 理论毛片 | 欧美日韩在线成人免费 | 国产视频日本 | 久久精品区 | 天天干天天舔天天操 | 亚洲欧美综合国产精品一区 | 夜夜橹| 麻豆伦理| 夜夜夜夜夜夜夜猛噜噜噜噜噜噜 | 91视频精品| 毛片免费观看日本中文 | 欧美图片一区 | 91论坛在线 | 日本一区二区免费视频 | 欧美精品中文字幕手机免费视频 | 久久不射影院 | 天天操夜夜拍 | 久久中文字幕久久久久 | 日韩伦理亚洲欧美在线一区 | 九九碰| 天天欧美| 国产大片91精品免费观看不卡 | 亚洲国产成人久久精品动漫 | 久久99国产亚洲精品观看 | 干干干操操操 | 不卡中文一二三区 | 国产精品伦理久久久久久 | 日韩小视频在线播放 | 韩国精品一区 | 99国产福利视频在线观看 | 五月婷婷天 | 国产在线精品香蕉综合网一区 | 亚洲成人xxx |