Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

WoodiesCCI Default and Turbo return only zero

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

    WoodiesCCI Default and Turbo return only zero

    Accessing the Default and Turbo properties for the WoodiesCCI indicator always return zero. I've tried with CalculateOnBarClose true and false. The other properties seem to work fine.

    I'm using version .10.

    #2
    Hello wbennettjr,
    Thanks for writing in and I am happy to assist you.

    The WoodiesCCI indicator is working fine at my end. Can you send upload a screenshot depicting what you are witnessing.

    I look forward to assisting you further.
    Attached Files
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply Joydeep. Below is some sample code:

      protectedoverridevoid Initialize()
      {
      Add(new Plot(Color.Orange, PlotStyle.Line, "Turbo"));
      }

      protectedoverridevoid OnBarUpdate()
      {
      var indicator = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2);
      Turbo.Set(indicator.Turbo[0]);
      Print(indicator.Turbo[0]);
      }

      Comment


        #4
        Hello,
        Please try the below code.
        Code:
        Turbo.Set(this.WoodiesCCI(2,5,14,34,25,6,60,100,2).Turbo[0]);
        Print(Turbo[0]);

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Thanks Joydeep. That worked.

          It seemed a bit strange to me that that should fix it so I investigated a bit further. It seems there is a bug in the NinjaTrader Indicator class. Please see below:

          protected override void Initialize()
          {

          // If the following line is removed, everything is fine.
          // If it is NOT removed, Turbo returns zero always.
          var indicator = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2);
          Add(
          new Plot(Color.Orange, PlotStyle.Line, "Turbo"
          ));
          }

          protected override void OnBarUpdate()
          {
          var indicator = WoodiesCCI(2, 5, 14, 34, 25, 6, 60, 100, 2);
          Turbo.Set(indicator.Turbo[0]);
          Print(indicator.Turbo[0]);
          }
          Last edited by wbennettjr; 05-10-2012, 06:33 AM.

          Comment


            #6
            Hello,
            Please do not call any indicator from the initialize section of the code. We suggest using the OnStartUp method for calling any indicator/variables which need to be called once.



            Please let me know if I can assist you any further.
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Anyone there that has a good heart please give a copy of this WoodiesCCI indicator. Thanks in advance.

              Comment


                #8
                Unfortunately that code is proprietary luxurious_04, so we could not publicily release it.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                579 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                334 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                554 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                551 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X