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

[原創]currentbar [金字塔]

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

     

  • 金字塔客服: 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樓的回復,你試試函數barpos效果

 

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 中文字幕亚洲欧美专区| 国产精品亚洲欧美日韩区| 亚洲毛片基地日韩毛片基地 | 澳门永久av免费网站| 国产乱子精品免费视观看片| 一区二区三区在线免费| 欧美精品xxxxbbbb| 啊灬啊灬用力灬别停岳视频| 97国产免费全部免费观看| 最近中文字幕无免费视频| 同人本里番h本子全彩本子| 99国产精品免费观看视频| 李丽珍蜜桃成熟时电影3在线观看| 国产V亚洲V天堂无码久久久| 99精品国产在热久久| 暖暖日本免费中文字幕| 午夜网站在线观看免费网址免费| 97精品国产一区二区三区| 日韩a在线播放| 亚洲成人黄色网| 色天天综合色天天看| 国语自产拍天天在线| 久久精品久久精品| 男人边吃奶边做视频免费网站| 国产精品亚洲精品日韩已满| www久久com| 日韩高清在线免费看| 亚洲精品午夜国产va久久成人| 美国一级毛片在线观看| 国产尤物在线视精品在亚洲| fc2ppv在线播放| 最近中文字幕免费mv视频7| 亚洲精品无码久久毛片| 阿v网站在线观看| 国产精品大片天天看片| 中文字幕在线观看日韩| 欧美特黄三级在线观看| 免费夜色污私人影院在线观看 | 97精品人妻一区二区三区香蕉| 性色a∨精品高清在线观看| 久久国产精品一国产精品|