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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          164 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          318 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          246 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          350 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          179 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X