Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Wat is the "value" of n/a ?

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

    Wat is the "value" of n/a ?

    Hello - not a programmer. just trying to create an alert. I want to know what the value of "n/a" is. to create a condition in an alert.

    ex "Falling not equal to n/a" as a condition in the the alert

    Thanks!!!

    Click image for larger version  Name:	image.png Views:	0 Size:	62.1 KB ID:	1246517
    Attached Files
    Last edited by kempotrader; 04-16-2023, 12:02 PM.

    #2
    Hello kempotrader,

    Thanks for your post.

    N/A typically refers to a null value. Note that this is not the same as having a value of 0.

    So I may accurately assist, are you creating a custom NinjaScript indicator to trigger an alert using the Alert() method based on a specific condition?

    Or, are you creating alerts in the Alerts window?

    What exactly are you referring to when you mention "Falling"? Is this a plot in an indicator that comes default with NinjaTrader or is this the IsFalling() method?

    I look forward to assisting further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      It is one of the conditions of an alert setup. It's one of the items in an Ergodic indicator (see below)

      Click image for larger version

Name:	image.png
Views:	97
Size:	225.5 KB
ID:	1246532

      (hopefully, this explains it well enough)​ AND if we get this, I have another one for you...lol

      Thanks kempo

      Comment


        #4
        Bump---what happened?

        Comment


          #5
          Hi kempotrader, the n/a is identified in C# through the double.NaN field. Unfortunately, It will require a script to determine this value. In a NinjaScript script one would use the IsValidDataPoint() method:
          Chris L.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Karado58, 11-26-2012, 02:57 PM
          8 responses
          14,826 views
          0 likes
          Last Post Option Whisperer  
          Started by Option Whisperer, Today, 09:05 AM
          0 responses
          1 view
          0 likes
          Last Post Option Whisperer  
          Started by cre8able, Yesterday, 01:16 PM
          3 responses
          11 views
          0 likes
          Last Post cre8able  
          Started by Harry, 05-02-2018, 01:54 PM
          10 responses
          3,204 views
          0 likes
          Last Post tharton3  
          Started by ChartTourist, Today, 08:22 AM
          0 responses
          6 views
          0 likes
          Last Post ChartTourist  
          Working...
          X