您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 其他期貨軟件知識>>正文內容

加入到教程提示 語句未尾缺少分號 [金字塔]

 

  • 咨詢內容:        

     

    加入到教程提示  

     

     

     

    “語句未尾缺少分號”

    variable:a=0;

     

    if con1 and holding=0 then beign

    buy(1,1,market);

    a:=h;

    end

    if h>a then sell(holding>0,0,market);


     

    例三:30分鐘翻轉系統

    //《日內30分鐘翻轉系統》

    //適用于1分鐘周期

    //編寫日期:20100812-JYL


     

    //準備需要的中間變量

    h30 := ref(hhv(h,30),1);

    l30 := ref(llv(l,30),1);


     

    //建立多頭的進場條件

    long := h>h30 and time>093000 and time<145000;


     

    if long then

    begin

    sellshort(holding < 0, 0, limitr, h30);

    buy(holding = 0, 1, limitr, h30);

    end


     

    //畫出多頭的止損線

    partline(holding>0, l30,colorred);


     

    //開空條件

    short := l < l30 and time > 093000 and time < 145000;


     

    if short then

    begin

    sell(holding > 0, 0, limitr, l30);

    buyshort(holding = 0, 1, limitr, l30);

    end


     

    //畫出空頭的止損線

    partline(holding<0, h30, colorgreen);


     

    //收盤前5分鐘平倉

    if time > 145500 then

    begin

    sell(holding > 0, 0, thisclose);

    sellshort(holding < 0, 0, thisclose);

    end

     

     

  • 金字塔客服:

    if con1 and holding=0 then beign

    這里的begin重新用英文狀態下輸入一次

     

  • 用戶回復:

    con1樓主沒定義,我假定con1:=1;

    variable:a=0;
    con1:=1;
    if con1 and holding=0 then

    begin
    buy(1,1,market);

    a:=h;

    end

    if h>a then sell(holding>0,0,market);

    //《日內30分鐘翻轉系統》

    //適用于1分鐘周期

    //編寫日期:20100812-JYL


     

    //準備需要的中間變量

    h30 := ref(hhv(h,30),1);

    l30 := ref(llv(l,30),1);


     

    //建立多頭的進場條件

    long := h>h30 and time>093000 and time<145000;


     

    if long then

    begin

    sellshort(holding < 0, 0, limitr, h30);

    buy(holding = 0, 1, limitr, h30);

    end


     

    //畫出多頭的止損線

    partline(holding>0, l30,colorred);


     

    //開空條件

    short := l < l30 and time > 093000 and time < 145000;


     

    if short then

    begin

    sell(holding > 0, 0, limitr, l30);

    buyshort(holding = 0, 1, limitr, l30);

    end


     

    //畫出空頭的止損線

    partline(holding<0, h30, colorgreen);


     

    //收盤前5分鐘平倉

    if time > 145500 then

    begin

    sell(holding > 0, 0, thisclose);

    sellshort(holding < 0, 0, thisclose);

    end

     

     

  • 網友回復:

     

     

 

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

可聯系技術人員 QQ: 262069696  點擊在線交流進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 久久丁香五月天综合网| 国产精品色拉拉免费看| 亚洲AV无码成人黄网站在线观看| 高清一本之道加勒比在线| 好男人影视官网在线www| 久久精品视频免费播放| 波多野结衣57分钟办公室| 啊灬啊灬别停啊灬用力啊免费看 | 黄色a级片免费看| 成年女人免费播放影院| 亚洲人成色77777在线观看| 福利一区二区视频| 国产免费久久精品99久久| 18禁无遮挡羞羞污污污污免费 | 成年女人毛片免费视频| 亚州1区2区3区4区产品乱码2021| 深爱婷婷激情网| 动漫美女www网站免费看动漫| 香蕉视频黄色在线观看| 国产精品成人99久久久久| a级成人毛片免费图片| 手机在线观看精品国产片| 久久精品电影免费动漫| 欧美成人午夜视频| 人禽无码视频在线观看| 美美女高清毛片视频免费观看 | 日韩精品极品视频在线观看免费| 亚洲欧美日韩在线一区| 精品一区二区三区四区电影| 国产三级在线播放线| 国产你懂的视频| 国产精品美女久久久久久2018 | heyzo高清中文字幕在线| 成年午夜无码av片在线观看| 久久精品国产亚洲AV高清热 | 日本无遮挡漫画| 亚洲av无码一区二区三区观看| 欧美线在线精品观看视频| 免费人成在线观看网站| 美国式禁忌三人伦| 国产三区视频在线观看|