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

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

[原創(chuàng)]currentbar [金字塔]

  • 咨詢內容: 請問Easylanguage里的 CurrentBar 保留變量 在金字塔里對應的是什么函數(shù)或用法?

     

  • 金字塔客服: CurrentBar 請解釋下

     

  • 用戶回復: 看看是不是BARPOS

     

  • 網友回復: 就是easylanguage寫的代碼,想轉成金字塔。CurrentBar的easylanguage解釋是:

    Returns the number of the bar currently being evaluated.

    Each bar on a chart (after the number of bars specified by the Maximum number of bars referenced by a study, known as MaxBarsBack) is assigned a number, which is incremented by 1 with each successive bar. For example, if your MaxBarsBack is set to 10, the 11th bar is CurrentBar number 1, the 12th bar is CurrentBar number 2, and so on.

    Remarks

    CurrentBar can only be used to return the number of the current bar, for example, you cannot use:

    CurrentBar[n]

    ... to obtain the bar number of the bar n bars ago. However, you can obtain the number of the bar n bars ago (for example, 5) by using:

    CurrentBar - 5

    Also, the CurrentBar reserved word is the same as the user function BarNumber. The only difference is that you can use the BarNumber function to reference past bars:

    BarNumber[5]

    Examples

    You can use CurrentBar to determine how long ago a particular condition occurred:

    If Condition1 then
     Value1 = CurrentBar; 
    If CurrentBar > Value1 then
     Value2 = CurrentBar - Value1;

    Value2 would hold the number of bars ago Condition1 occurred.

     

  • 網友回復:

    看3樓的回復,你試試函數(shù)barpos效果

 

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

可聯(lián)系技術人員 QQ: 511411198  點擊這里給我發(fā)消息進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 亚洲欧洲日本在线 | 日本人又黄又爽免费视频 | 2021福利视频 | 国产精品久久久久久久久久久不卡 | 日韩视频网 | 99re热久久精品这里都是精品 | 亚洲精品影院一区二区 | 亚洲精品一区二区三区福利 | 久久黄色网址 | 模特精品视频一区 | 操美女模特 | 国产精品视频男人的天堂 | 国产男女在线观看 | 国产一级影视 | 91在线视频免费观看 | 午夜免费福利在线观看 | 日本一级在线播放线观看免 | 黄片毛片一级 | 自拍 欧美 在线 综合 另类 | 国产精品国产三级国产an | 久久中文字幕视频 | 国产福利视频一区二区微拍 | 伊人久久在线观看 | 一级特黄aaa大片免费看 | 综合网伊人 | 日本高清中文字幕一区二区三区 | 99精品久久久久久久婷婷 | 激情影院免费看 | 欧美成人日韩 | 桃花综合| 国产精品亚洲国产三区 | 久久精品国产亚洲香蕉 | 欧美日韩中出 | 亚洲最黄视频 | 小香蕉影院| 国产一级理论免费版 | 日韩欧美毛片免费观看视频 | 色婷婷在线视频 | 青青青青啪视频在线观看 | 免费国产a国产片高清不卡 免费国产阿v视频在线观看 | 福利姬在线精品观看 |