Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Please ammend the "DOCS"

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

    Please ammend the "DOCS"

    in Ninja Docs, in CrossAbove/CrossBelow description pages, there is missing one critical information:


    if crossabove considers "equality" as cross.
    for example, does this return true?

    CrossAbove( a, b, 1);

    while
    a[1]= 9.00, a[0]=11.00,
    and say, "b" is 11.00

    #2
    Hello ttodua,

    Thank you for your post.

    In the situation where your plots are exactly equal or the same value, this would not be a true cross as the values are currently the same value. The existing cross methods would not check for this specific case with a lookback of 1 as they are instead specifically checking if a price cross happened where the price was below, and then passed through the other price or the opposite.

    I will put in a request for a note to be added to the help guide to reflect this.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      ok, to say clearly, i wanted to find out for `CrossAbove( a, b, 1)` which of these logic applies:

      1) a[1]<b[1] && a[0]>b[0]
      or
      2) a[1]<=b[1] && a[0]>b[0]
      or
      3) a[1]<b[1] && a[0]>=b[0]

      so, you might state that clearly in docs.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      42 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      29 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      46 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X