Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CrossAbove and CrossBelow

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

    CrossAbove and CrossBelow

    Hi EV,

    Help me pleace to make clear how to use CrossAbove and CrossBelow functions.
    I have my custom indicator which sets plot on some value(for example it sets the average of the first bar of the session).
    How do I use CrossAbove or CrossBelow function to trigger that Low[0] or High[0] values crossed my plot
    I've tried something like this:
    Code:
    CrossAbove( Algo(lev1,  startTime, width).O1,Low[0], 1)
    Code:
    CrossAbove( Algo(lev1,  startTime, width).O1,Low[0], 0)
    Code:
    CrossAbove( Low[0], Algo(lev1,  startTime, width).O1, 0)
    Algo(lev1, startTime, width).O1 - it's my indicator which shows the average of the first bar

    #2
    Hello dv926844,

    Thanks for your post.

    In the CrossAbove and CrossBelow methods, the crossing dataseries must be listed first, the crossed value can be a static/fixed value or another dataseries.

    Try using the Low as the crossing data series and your plot as the crossed dataseries.

    CrossAbove( Low, Algo(lev1, startTime, width).O1, 1)

    Reference: http://ninjatrader.com/support/helpG...crossabove.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    131 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    111 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X