Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CrossBelow/Above

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

    CrossBelow/Above

    I am confused about the difference betweem Cross Below/Above and if (Close[0] > or < EMA.

    Also in this example:
    if(CrossAbove(EMA(High,PeriodoEMAmedia),EMA(High,P eriodoEMAlarga),1))

    What's the meaning of the 1)? I know that is the previous bar, but I don't get how it works, if you could illustrate with an example I would really appreciate.

    Thanks

    Daniel

    #2
    Hello,

    Mainly its there to make sure a condition only runs once. For example if you run this live with calculate on bar close = false. With each tick up and down aat the cross above point you would get an entry signal then no entry signal. Bak and forth until it finally becomes true. The CrossAbove method makes ure that it crosses over in the lookback period instead, this way you get one confirmed signal.

    -Brett
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X