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

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

ifflogic 和 lastbaronChart怎么實現 [金字塔]

  • 咨詢內容: 請問 金字塔里怎么實現和 easylanguage里相似功能:
    1. ifflogic函數(以下是easylanguage的解釋):

    The IFFLogic function is used to conditionally return one of two specified true/false expressions.

    Syntax

    IFFLogic(Test, TrueVal, FalseVal)

    Returns (Boolean)

    The true/false value of TrueVal if Test is true; the true/false value of FalseVal if Test is false.

    Parameters

    Name

    Type

    Expression

    Test

    TrueFalse

    Specifies the conditional expression to check (such as Close> Open).

    TrueVal

    TrueFalse

    Sets the True/False expression to evaluate if Test condition is true.

    FalseVal

    TrueFalse

    Sets the True/False expression to evaluate if Test condition is false.

    Remarks

    The IFFLogic function enables you use a Test condition to determine whether to evaluate either a 'True' expression or 'False' expression.

    This function is similar to the IFF function, however the second and third inputs are true/false expressions, not numeric values.

    Example

    Assigns to Value1 the true/false value of the expression Close>Close[1] if Close>Open is true or the true/false value of the expression Open<Open[1] if Close>Open is false.

    Value1 = IFFLogic(Close>OpenClose>Close[1], Open<Open[1]);

    Reference

    The IFFLogic function was developed by TradeStation Technologies, Inc.



    2. LastBarOnChart(以下是easylanguage的解釋):

    The LastBarOnChart function is used to determine if the current bar being evaluated is the last bar on the chart.

    Syntax

    LastBarOnChart

    Returns (Boolean)

    True if LastBarOnChart is the last charted bar. False if not.

    Parameters

    None

    Example

    In order to play a wave (sound) file only in the last bar of the chart you can write:

    If LastBarOnChart Then
     Condition1 = PlaySound("C:\window\ding.wav");

       This function will return True for all bars on a chart with tick-based interval, which have the same date and time as the last bar of the chart.




     

  • 金字塔客服: 講中文

     

  • 用戶回復: 好吧,意思是這個樣子的:
    1. ifflogic(easylanguage里):
    這個函數用法是:變量A=ifflogic(判斷條件,邏輯表達式1,邏輯表達式2)
    當判斷條件為真時,執行邏輯表達式1,該表達式的值可能為true或false,把這個結果賦給變量A,
    當判斷條件為假時,執行邏輯表達式2,該表達式的值可能為true或false,把這個結果賦給變量A
    我想問在金字塔里該怎么實現這個函數的功能?
    2. LastBarOnChart:
    這個是easylanguage里內建的一個變量。
    如果當前讀到的Bar是圖形上的最后一個Bar,LastBarOnChart的值就是true
    如果當前讀到的Bar不是圖形上的最后一個Bar,LastBarOnChart的值就是false
    我想問這個變量在金字塔里可有對應的功能來實現?

     

  • 網友回復:

    1.if

    2.islastbar

     

  • 網友回復: 好的,謝謝。

 

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

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


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 欧美成人中文字幕dvd | 热热涩热热狠狠色香蕉综合 | 久久www免费人成精品 | 中国女人18毛片 | 亚洲一级在线 | 中文字幕亚洲无线码在线一区 | 一级片手机在线观看 | 久久综合给合久久97色美利坚 | 中文字幕最新中文字幕中文字幕 | 日韩国产成人 | 成人 亚洲 | 一级不卡毛片免费 | 日本老妇成熟 | 久久久这里只有精品免费 | 亚洲成人在线免费 | 毛片免费全部免费观看 | 黄色免费观看视频网站 | 爆操白虎逼 | 免费国产午夜高清在线视频 | 日韩在线视频一区二区三区 | 亚洲免费网站在线观看 | 欧美日韩亚洲综合在线一区二区 | 久久久久久久国产精品视频 | 狠狠干艹| 天天操天天射天天色 | 亚洲精品专区一区二区三区 | 亚洲精品久久久久久动漫剧情 | 卡通动漫亚洲综合 | 91精品国产露脸在线 | 色老头xxxxbbbb视频 | 欧美午夜激情影院 | 国内精品亚洲 | 亚洲高清美女一区二区三区 | 成人a级特黄毛片 | 欧美午夜视频一区二区三区 | 999久久66久6只有精品 | 国内精品久久久久久影院网站小说 | 国产99久久精品一区二区 | 香蕉大黄香蕉在线观看 | 夜夜操天天 | 国模私拍视频在线 |