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


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

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 波多野结衣视频全集| 国产精品亚洲综合五月天| 日操夜操天天操| 亚洲欧美日韩自偷自拍| 久久久精品国产sm最大网站| 精品一二三四区| 国产小视频免费在线观看| 99这里只有精品66视频| 无码人妻丰满熟妇区毛片18| 亚洲伊人久久大香线焦| 男人j放进女人p全黄午夜视频| 国产乱人伦Av在线无码| 窝窝午夜看片成人精品| 女的扒开尿口让男人桶| 久久久久亚洲精品影视| 欧美亚洲日本视频| 伊人久久中文大香线蕉综合| 色天天综合色天天碰| 国产真人无码作爱免费视频| 久久国产乱子伦精品免费一| 欧美精品亚洲精品日韩专区va| 噜噜高清欧美内射短视频 | 欧美综合图区亚欧综合图区| 午夜视频免费观看| 韩国公和熄三级在线观看| 国产精品成人免费综合| jizz国产在线播放| 成年人视频在线免费播放| 久久综合久久美利坚合众国| 欧美日韩性猛交xxxxx免费看| 免费国产一级特黄久久| 羞羞漫画在线成人漫画阅读免费| 国产成人悠悠影院| 18禁止看的免费污网站| 天堂影院www陈冠希张柏芝| 中文字幕无码精品亚洲资源网久久| 日韩高清免费观看| 亚洲国产成人久久综合区| 深夜影院一级毛片| 免费国产在线观看老王影院| 美女福利视频一区二区|