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 LawrenHom, Today, 10:45 PM
          0 responses
          3 views
          0 likes
          Last Post LawrenHom  
          Started by love2code2trade, Yesterday, 01:45 PM
          4 responses
          28 views
          0 likes
          Last Post love2code2trade  
          Started by funk10101, Today, 09:43 PM
          0 responses
          7 views
          0 likes
          Last Post funk10101  
          Started by pkefal, 04-11-2024, 07:39 AM
          11 responses
          37 views
          0 likes
          Last Post jeronymite  
          Started by bill2023, Yesterday, 08:51 AM
          8 responses
          44 views
          0 likes
          Last Post bill2023  
          Working...
          X