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

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

求診斷 [金字塔]

  • 咨詢內(nèi)容: 我寫個小程序,其中關(guān)于成交量的句子v1,我讓其顯示出來,但是信號和程序表達不一致,我在注釋中標(biāo)出,我查了很久沒查出原因,請高手們幫我看一下,多謝。

    VARIABLE:buy1=2,cross1=2;
    T1:TIME>OPENTIME(1)+500 AND TIME<=OPENTIME(1)+2000;
    T2:TIME>OPENTIME(1)+2000 and time<closetime(0)-4000-1500;

    多:=(c-l)/c*1000;
    空:=(h-c)/c*1000;
    方向0:=多-空;
    方向:ma(方向0,3);

    vol2:=vol;
    vol3:=ma(vol,10);
    voll:=(vol2/vol3-1)*100-5;
    v1:voll;
    //這句的v1>100,好像不起作用?請幫我看一下;
    if  v1>100 and 方向>0 and t1 then begin
     buy1:=1;
     end;
     if v1>100 and 方向>0 and t2 then begin
     buy2:=1;
     end;
     //這句的v1>100,好像不起作用?請幫我看一下;
     if v1>100 and 方向<0 and t1 then begin
     buy1:=0;
     end;
     
     if v1>100 and 方向<0 and t2 then begin
     buy2:=0;
     end;
     
    // if cross(ma(c,5),ma(c,10)) then
    // cross1:=1;
    // if cross(ma(c,10),ma(c,5)) then
    // cross1:=0;
     
     b1:buy1;
     c1:cross1;
     sell(holding>0 and time=closetime(0),0,thisclose);
     sellshort(holding<0 and time=closetime(0),0,thisclose);
     
     sell(buy2=0 and holding>0 and t2,0,thisclose);
     sellshort(buy2=1 and holding<0 and t2,0,thisclose);
     
    /買1:buy(buy1 and holding=0 and t1,20%,thisclose);
     買2:buy(buy2 and holding=0 and t2,20%,thisclose);
     
     buyshort(buy1=0 and holding=0 and t1,20%,thisclose);
     buyshort(buy2=0 and holding=0 and t2,20%,thisclose);

     

  • 金字塔客服: 不起作用是從哪里判斷出來的?

     

  • 用戶回復(fù):

    比如我加在PTA5分鐘K線,雖然我設(shè)定v1>100時,buy1=1,但實際是v1<100時,buy1卻可能變成1了?謝謝

     

  • 網(wǎng)友回復(fù):

    v1<100,你在哪里進行判斷了,賦值語句在哪里?

 

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 全网毛片 | 黄网页在线观看 | 午夜剧场福利 | 999久久久免费精品国产牛牛 | 波多野结衣一区二区 | 亚洲人jizz| 午夜视频在线观看网站 | 妞妞影视一二三区 | 久久99综合国产精品亚洲首页 | 欧美日韩亚洲无线码在线观看 | 国产黄色在线播放 | 一边脱一边摸一边揉免费 | 夜夜狠狠狠狠 | 伊人久久免费视频 | 最近免费中文字幕mv | 国内一区二区三区精品视频 | 98精品| 日韩视频第一页 | 国产欧美曰韩一区二区三区 | 在线看你懂得 | 免费观看大片毛片 | 在线观看精品视频网站www | 99在线视频免费 | 欧美日本三级 | 91免费公开视频 | 中文字幕日韩一区二区三区不卡 | 福利网在线 | 成人永久免费视频 | 欧美成人免费全部色播 | 欧美日韩午夜视频 | 麻豆久久久久久久 | 免费视频精品 | 成年男女免费视频观看性 | 欧美另类性视频在线看 | 夜夜爽夜夜叫夜夜高潮漏水 | 亚洲欧美人成人让影院 | 国产一区三区二区中文在线 | 一级特黄女人生活片 | 国产精品久久久久久福利漫画 | 日本欧美人xxxxx在线观看 | 在线观看av网站永久 |