Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars counter if condition

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bars counter if condition

    Hello i want create a simple indicator to use in market analyzer, can you help me please.
    How create this:

    Indicator: "Days/bars from cross"

    Condition: if ema 10 cross above ema 40 > count days or bars

    output: days/bars from cross: example 18 bars

    Ty

    #2
    Hello tradingindependiente,

    You may view our Help Guide at the following link that will go over how to setup a CrossAbove condition and give you an example of how to program this at the following link.

    http://www.ninjatrader.com/support/h...crossabove.htm

    For Example:

    Code:
    if (CrossAbove(EMA(10), EMA(40), 1))
    {
        // Reset counter
    }
    else
    {
        // Increment counter +1
    }
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Atomic, Today, 11:27 AM
    0 responses
    1 view
    0 likes
    Last Post Atomic
    by Atomic
     
    Started by smk200, Today, 10:29 AM
    2 responses
    19 views
    0 likes
    Last Post smk200
    by smk200
     
    Started by Austiner87, Today, 09:44 AM
    2 responses
    25 views
    0 likes
    Last Post Austiner87  
    Started by TriGuy818, Today, 09:19 AM
    2 responses
    15 views
    0 likes
    Last Post TriGuy818  
    Started by 7robert, Today, 09:12 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X