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

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

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

  • 咨詢內(nèi)容:

    請教:程序化最后問題:“關(guān)注問題1、2”

    1、固定止損:3個點(diǎn)
       系統(tǒng)“自動移動止盈”:如果賺了3個點(diǎn),自動設(shè)置止盈0.4,
                             如果賺了5個點(diǎn),自動設(shè)置止盈:把0.4改為2,
                             如果賺了10個點(diǎn),自動設(shè)置止盈:把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個點(diǎn)系統(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個點(diǎn)系統(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點(diǎn)止盈10點(diǎn),所以我才這樣寫,后來又說是5點(diǎn),我也改過了,

    現(xiàn)在再改一次

 

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 波多野结衣国产精品 | 亚洲伦理一二三四 | 高清波多野结衣一区二区三区 | 老妇激情毛片免费 | 欧美综合专区 | 成人18毛片 | 99热成人精品热久久669 | 成人午夜大片免费视频77777 | 模特啪啪 | 中文字幕亚洲一区婷婷 | 国产亚洲美女精品久久久 | 欧美一区二区在线观看免费网站 | 久久99久久99精品免观看 | 亚洲视频中文字幕在线 | 国产成人一级 | 激情小视频在线播放免费 | 黄色生活毛片 | 成人a毛片高清视频 | 亚洲精品福利视频 | 精品日产1区2区 | 日韩视频 中文字幕 视频一区 | 精品日韩在线视频一区二区三区 | 天堂精品高清1区2区3区 | 亚洲日日干 | 一级黄色网 | 久久久国产这里有的是精品 | 奇米亚洲春色 | 一本毛片 | 国产免费人视频在线观看免费 | 国产亚洲精品久久久久久 | 精品国产第一国产综合精品gif | 天天躁夜夜躁很很躁麻豆 | 在线看亚洲 | 久久综合免费 | 亚洲国产欧美91 | 四虎永久免费地址在线网站 | 精品欧美高清一区二区免费 | 欧美一区二区在线观看视频 | 久re这里只有精品最新地址 | 九九热在线免费视频 | 精品国产中文字幕 |