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

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

[原創]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  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 一个人看的视频免费观看www | 欧美成人伦理 | 日本一区视频 | 亚洲免费区 | 奇米777狠狠色噜噜狠狠狠 | 波多野结衣视频一区 | bt7086国产一区合集亚洲 | 最近中文字幕大全高清视频 | 九九久久国产精品免费热6 九九久久亚洲综合久久久 九九伦理 | 国亚洲欧美日韩精品 | 国产午夜在线观看视频播放 | 欧美一级在线观看播放 | 91免费精品国偷自产在线在线 | 亚洲人成网址在线观看 | 欧美在线播放成人免费 | 久久毛片免费看一区二区三区 | 成人短视频在线在线观看 | 在线免费毛片 | 亚洲一区二区三区成人 | 欧美怡春院 | 国产精品伦一区二区三级视频 | 永久黄网站色视频免费观看99 | 五月婷婷伊人 | 在线观看福利影院 | 亚洲一区二区精品视频 | 欧美国产日韩911在线观看 | 综合自拍亚洲综合图不卡区 | 亚洲国产日韩a在线播放 | 北条麻妃中文字幕在线观看 | 欧美一区二区三区在线播放 | 55夜色66夜色欧洲精品 | 国产在线视频一区二区三区 | 亚洲一区二区三区四区在线 | 在线观看成年 | 天堂在线视频 | 麻豆传煤一区免费入 | 手机在线免费观看毛片 | 一二三四视频社区5在线高清视频 | 成人黄18免费视频 | 香蕉视频禁18 | 成人久久久观看免费毛片 |