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 helpwanted, Today, 03:06 AM
          1 response
          12 views
          0 likes
          Last Post sarafuenonly123  
          Started by Brevo, Today, 01:45 AM
          0 responses
          9 views
          0 likes
          Last Post Brevo
          by Brevo
           
          Started by aussugardefender, Today, 01:07 AM
          0 responses
          5 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          242 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          387 views
          1 like
          Last Post Gavini
          by Gavini
           
          Working...
          X