• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 bumbledbee, Today, 04:28 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by Tmaninc, Today, 02:13 AM
          3 responses
          12 views
          0 likes
          Last Post Tmaninc
          by Tmaninc
           
          Started by rexmie888, Yesterday, 09:37 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Started by larkmail, Yesterday, 06:19 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by jvanelli, Yesterday, 09:23 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Marco  
          Working...
          X