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

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

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

  • 咨詢內(nèi)容: 請問 金字塔里怎么實(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
    我想問在金字塔里該怎么實(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
    我想問這個(gè)變量在金字塔里可有對應(yīng)的功能來實(shí)現(xiàn)?

     

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

    1.if

    2.islastbar

     

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

 

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

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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 国产图区 | 精品综合久久久久久97超人该 | 亚洲综合一区二区三区四区 | 国产日韩精品视频 | 99在线热视频 | 成人精品一区二区久久久 | 色图综合网 | 久久日韩在线 | 日日日视频 | 99国产精品高清一区二区二区 | 素人259luxu在线观看暴露 | 国产成人久久一区二区三区 | 亚洲一区二区三区播放在线 | 性欧美高清come| 国内精品一区二区2021在线 | 亚洲成在人网站天堂一区二区 | 26uuu欧美日韩国产 | 女人夜色黄网在线观看 | 久久九九热视频 | 香蕉视频黄色在线观看 | 国产精品2020在线看亚瑟 | 亚洲狠狠婷婷综合久久久久 | 简单视频在线播放jdav | 伊人热人久久中文字幕 | 久久91亚洲精品中文字幕 | 玖热在线 | 四虎影视最新网站在线播放 | 九月婷婷天天澡天天添天天爽 | 狠狠躁夜夜躁人人爽天天天天 | 26uuu最新地址| 精品在线免费视频 | 成人欧美视频 | 日日摸狠狠的摸夜夜摸 | 香蕉黄色片 | 人人狠狠综合久久亚洲88 | 日本一本在线观看 | 久久精品国产曰本波多野结衣 | 日本网站在线播放 | 青青久 | 99热最新网站地址获取 | 精品国产成人系列 |