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 kenz987, Today, 10:20 AM
          0 responses
          4 views
          0 likes
          Last Post kenz987
          by kenz987
           
          Started by llanqui, Today, 09:59 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by icebergdelphi, Today, 08:57 AM
          2 responses
          10 views
          0 likes
          Last Post icebergdelphi  
          Started by vitaly_p, Yesterday, 05:09 PM
          3 responses
          29 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by llanqui, Yesterday, 12:51 PM
          4 responses
          12 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X