Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thank you very much, Bertrand and Josh.

          Best Regards.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by GussJ, 03-04-2020, 03:11 PM
          11 responses
          3,221 views
          0 likes
          Last Post xiinteractive  
          Started by andrewtrades, Today, 04:57 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by chbruno, Today, 04:10 PM
          0 responses
          6 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          9 views
          0 likes
          Last Post FAQtrader  
          Working...
          X