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

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

 

  • 咨詢內容:        

     

    加入到教程提示  

     

     

     

    “語句未尾缺少分號”

    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  點擊在線交流進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 天天干天天干天天干天天干| 污视频免费在线观看| 国产精品多人P群无码| 一级毛片一级毛片一级毛片aaav| 好吊色永久免费视频大全| 婷婷五月综合激情| 久久精品国产99精品国产2021| 老司机午夜精品视频播放| 国产精品制服丝袜| www亚洲成人| 日本护士在线视频xxxx免费| 公的大龟慢慢挺进我的体内视频| 99久久久国产精品免费蜜臀 | 国产电影入口麻豆| 久久99精品国产一区二区三区| 老师洗澡喂我吃奶的视频| 成人无码精品一区二区三区| 亚洲乱码一区二区三区在线观看| 韩国一级在线观看| 婷婷开心中文字幕| 久久婷婷五月综合色奶水99啪| 精品久久久无码中文字幕| 国产综合久久久久久| 丝袜高跟浓精受孕h文| 日韩精品人妻系列无码av东京| 北条麻妃在线一区二区| 2018国产大陆天天弄| 日本一区二区高清| 亚洲视频在线免费| 黄床大片30分钟免费看| 少妇无码太爽了视频在线播放| 亚洲国产精彩中文乱码av| 精品久久久久不卡无毒| 国产亚洲综合成人91精品| 奇米影视777色| 成人区人妻精品一区二区不卡| 亚洲高清不卡视频| 美女网站在线观看视频免费的| 国产视频2021| 久久99精品波多结衣一区| 欧美一区二区三区综合色视频|