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

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

程序化最后2個(gè)問題 [金字塔]

  • 咨詢內(nèi)容:

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

    1、固定止損:3個(gè)點(diǎn)
       系統(tǒng)“自動(dòng)移動(dòng)止盈”:如果賺了3個(gè)點(diǎn),自動(dòng)設(shè)置止盈0.4,
                             如果賺了5個(gè)點(diǎn),自動(dòng)設(shè)置止盈:把0.4改為2,
                             如果賺了10個(gè)點(diǎn),自動(dòng)設(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);//滿足任意一個(gè)條 件后開倉(cāng){上述經(jīng)測(cè)試沒有問題}
    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個(gè)點(diǎn)系統(tǒng)會(huì)自動(dòng)平倉(cā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);//移動(dòng)止盈{問題2:上述賺錢了,會(huì)自動(dòng)平倉(cāng),程序沒有按要求去執(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);//滿足任意一個(gè)條 件后開倉(cāng){上述經(jīng)測(cè)試沒有問題}
    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個(gè)點(diǎn)系統(tǒng)會(huì)自動(dòng)平倉(cā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);

     

     

    之前說(shuō)的是贏了10點(diǎn)止盈10點(diǎn),所以我才這樣寫,后來(lái)又說(shuō)是5點(diǎn),我也改過了,

    現(xiàn)在再改一次

 

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 欧美特黄三级在线观看 | 乡村爱情第16部免费观看 | 好吊色视频在线观看 | 狠狠干天天干 | 999香蕉视频 | 曰批视频在线观看 | 欧美视频精品在线观看 | 亚洲欧洲中文 | 午夜综合| 特一级黄色片 | 国产成人精品一区二三区2022 | 狠狠操综合 | 国产自线一二三四2021 | 国产第一页久久亚洲欧美国产 | 亚洲欧美一区二区三区综合 | 操人网站| 欧美日韩在线第一页 | bl男男全肉高h车 | 日韩亚洲欧美性感视频影片免费看 | 精品在线免费观看视频 | 国产成人麻豆精品 | 看一级毛片免费观看视频 | 免费观看日韩大尺码观看 | 色老头成人免费综合视频 | 国内精品视频在线播放 | 日韩在线无 | 影音先锋2021色资源网站 | 久久综合九色综合97_ 久久久 | 欧美日韩色 | 无限看免费视频大全在线播放 | 看黄网站在线看 | 亚洲天堂网在线播放 | 国产激情视频在线播放 | 免费精品国偷自产在线读大二 | 日韩一级在线视频 | 在线观看视频你懂得 | 色黄啪啪网18以下勿进动画 | 久久青青成人亚洲精品 | 日韩二三区 | 1769国产精品一区2区 | 男人和女人日皮视频 |