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

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

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

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

     

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

    1.if

    2.islastbar

     

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

 

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

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


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
主站蜘蛛池模板: 91啪国自产在线高清观看 | 日产精品一区二区 | 好吊妞视频在线 | 国产精品日本一区二区在线看 | 欧美一级视频精品观看 | 亚洲综合免费 | 日本色吧 | 免费在线观看h片 | 亚洲欧美另类在线 | 国产小视频在线观看www | 天天cao在线| 国产精品久久久久aaaa | 亚洲精品色综合久久久 | 国产亚洲欧美日韩v在线 | 天天干精品 | 国产伊人久久 | 狠狠狠操 | 手机国产日韩高清免费看片 | 国产一级在线观看www色 | 国产日韩一区二区三区在线观看 | 免费看一级毛片欧美 | 日本欧美高清全视频 | 很很鲁在线视频播放影院 | 99精品福利 | 这里只有精品99re在线 | 精品国产一区二区三区久久 | 青草国产 | 在线视频自拍 | 男人的天堂在线精品视频 | 天天干夜夜爽天天操夜夜爽视频 | 爱爱免费观看高清视频在线播放 | 免费看久久 | 日日摸夜夜添夜夜添97 | 四虎影视国产精品亚洲精品hd | s8国产成人精品视频 | 亚洲精品视频网 | 国产免费高清视频 | 成年香蕉大黄美女美女 | 99精品视频在线免费观看 | 九九国产视频 | 亚洲成人在线网站 |