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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    238 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    154 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    163 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    246 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    199 views
    0 likes
    Last Post CarlTrading  
    Working...
    X