Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

A serious bug in TwoHundredFiftySix implementation

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

    A serious bug in TwoHundredFiftySix implementation

    I complained here about a strange behaviour of Gumphrie;s RMMA indicator in NT7 in this thread:


    However the problem in not in the code. There is a serious bug in TwoHundredFiftySix Max bars implementation. Attached 2 images - one with a strange behaviour when TwoHundredFiftySix is set, another, with the same data with a normal behaviour, when set to Infinite.

    It occurred in beta 17.

    Attached 2 images and the code I'm using original Gumphire's RMMA with enum declaration outside of Namespace Indicator scope, in order to compile.

    In the 3-rd image you can see a RMMA periodical behaviour. I didn't check, but I bet, the period is 256 bars.

    Attached a code, which caused a bug to appear.
    Attached Files

    #2
    xTrader1, please try with regular default indicators by changing this DataSeries setting - I could not find an issue with it on my end.

    The code you attached would need a rework for NT7, as I believe it was originally designed for 6.5 and therefore used the default DataSeries infinite lookback and implements custom plotting / scaling features which would be affected.

    Contains critical information including but not limited to migration, installation, connections and changes.

    Comment


      #3
      It should be noted that if you are trying to use Infinite, all of those DataSeries objects in your code need to be set to Infinite as well.

      Instead of "new DataSeries(this);" you will need to use "new DataSeries(this, MaximumBarsLookBack.Infinite);".
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Well, Rmma works for me either manually setting Infinite when inserting the indicator, or including a statement:
        MaximumBarsLookBack = MaximumBarsLookBack.Infinite;

        Instead of using implicitly a constructor new DataSeries(this, MaximumBarsLookBack.Infinite) for every DataSeries built.

        Thank you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X