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

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

ifflogic 和 lastbaronChart怎么實現(xiàn) [金字塔]

  • 咨詢內(nèi)容: 請問 金字塔里怎么實現(xiàn)和 easylanguage里相似功能:
    1. ifflogic函數(shù)(以下是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.




     

  • 金字塔客服: 講中文

     

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

     

  • 網(wǎng)友回復(fù):

    1.if

    2.islastbar

     

  • 網(wǎng)友回復(fù): 好的,謝謝。

 

有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 日韩欧美中文字幕在线播放 | 16欧美freesex呦交hd | 日韩欧美亚洲视频 | 手机在线精品视频每日更新 | 日韩成人午夜 | 中文字幕日韩专区精品系列 | 日韩在线一区二区 | 欧美人成网 | 国产日韩一区二区三区在线播放 | 97超级碰| 在线观看日韩视频 | 日韩黄色三级 | 国产丝袜美女 | 国产成人a毛片在线 | 91视频青青草 | 在线a视频| 成人亚洲欧美日韩在线观看 | 久久亚洲成人 | 精品国产影院 | 欧美成人免费一区在线播放 | 天天干天天拍天天射 | 国产成人精品日本亚洲18图 | 成人影院在线 | 色婷婷狠狠久久综合五月 | 国产乱人伦精品一区二区 | 欧美人成网站在线看 | 亚洲春色第一页 | 狠狠操.com | 高清国产一区二区三区 | 手机在线精品视频 | 看看黄色毛片 | 国产婷婷一区二区三区 | 性欧美老妇人视频 | 欧美一区二区三区在线观看不卡 | 国产成人激情 | 日本3级网站 | 成人高辣h视频一区二区在线观看 | 免费黄色在线网址 | 午夜视频免费在线 | 天堂在线视频 | 免费看一级a一片毛片 |