Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problems with PriceTypeSupported

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

    Problems with PriceTypeSupported

    Hello,

    I have developed an indicator (Ehlers' SuperSmoother 2P ) for smoothing the RSI. It doesn't use the price.

    But I have declared PriceTypeSupported in Initialize section. This must not to affect the result, because the indicator doesn´t use the price's serie but the RSI's serie.

    The first version has PriceTypeSupported = true, and the second version to false. Both versions, have the same code, except PriceTypeSupported.
    However, the plotting output is different. Very similar but not identical.You can check the DataBox window.




    If I change PriceTypeSupported = false, in both; then the result is the same.

    Do you know why this difference ? Is it a bug ?

    Thanks very much.
    Attached Files

    #2
    The problem is in Input = Median;
    Also with Input = Typical, Input = High, ..., but not with Input = Close;



    Best Regards

    Comment


      #3
      Potential problem is in the way you are using DataSeries. Please see the Help Guide article here on how to set values to DataSeries objects: http://www.ninjatrader-support.com/H...iesObject.html

      You need to use .Set().
      Code:
      dsButter.Set(RSI(14,1)[0]);
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Supersmoother on RSI

        Hi cls71,

        please take a look at the attached zip file.

        Works for me fine over here with all price type inputs.

        Have a great day!
        Attached Files

        Comment


          #5
          Thank you very much, Bertrand and Josh.

          Best Regards.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          651 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          577 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X