Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ability to accept Double.NaN plots

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

    Ability to accept Double.NaN plots

    Whenever we might set the plot to double.nan:

    Values[0][0] = myVariable; //while myVariable is double.nan

    we always get error :
    Error on calling 'CalculateMinMax' method on bar XXXX: The calculation results in unrenderable values.

    so, please make an ability (i.e. by setting the property in SetDefaults) that OnCalculateMinMax method just ignored the double.nan plot-values and didn't throw error. (if that involves adjusting plot-series to ignore the nan values also, then it should also be addressed).

    #2
    Hello ttodua,

    I would recommend that you do not set the plot (or reset the plot) instead allowing a double.NaN to be set. This would be an immediate fix.

    Let me prefer if you would like to submit a feature request for our development to consider allowing these invalid numbers instead of corrected the code in your own script.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I know Chelsea, just for the reason of necessity i have opened this topic, because when we convert scripts from other platforms, we need to use double.nan-s in logic. so, in SetDetaults we could be able to set the property which will tell indicator to to just ignore it and dont give error in OnCalculateMinMax. if that is easy to implement, would be nice and please submit feature request.

      Comment


        #4
        Hello ttodua,

        Use two series. Once series that has NaN values the other series is Plot that just doesn't set a value.

        I have submitted a feature request for our development to consider.

        Once I have a tracking ID for this request I will post in this thread for future reference.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello ttodua,

          This request is being tracked with ID# SFT-4971.

          As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

          Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by trilliantrader, 04-18-2024, 08:16 AM
          7 responses
          27 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by samish18, 04-17-2024, 08:57 AM
          17 responses
          64 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by rocketman7, Today, 02:12 AM
          2 responses
          17 views
          0 likes
          Last Post rocketman7  
          Started by briansaul, Today, 05:31 AM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by PaulMohn, Today, 03:49 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X