Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

testing on LSMA color in WoodiesCCI() indicator

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

    testing on LSMA color in WoodiesCCI() indicator

    Hi,

    I am programming a strategy using the WoodiesCCI().

    As I see in the documentation in here http://www.ninjatrader.com/support/h...oodies_cci.htm, I am able to test almost all things I need for the ZLR pattern.

    However the test on the LSMA (the indicator positioned on the zero-line bar) is not documented. I need to be able to test whether we are above or below. Is there an undocumented method I could use?


    Best regards,
    Martin

    #2
    Hi Martin, that could unfortunately not be accessed from the indicator, however if I'm not mistaken, isn't this just Price being < or > than the 26 Period LinReg value?

    Comment


      #3
      Thanks. You are right it is just a LinReg, so I am testing Close against LinReg.

      Comment


        #4
        LinReg value

        Hi, you said:

        if I'm not mistaken, isn't this just Price being < or > than the 26 Period LinReg value.

        What is the 26 Period LinReg value? How can I get this value?

        Thanks

        Comment


          #5
          Hello yasheng2005,

          Thank you for your post.

          You can call the LinReg with LinReg(26)[0] in code. To add it to your chart, right click in the chart > select Indicators > LinReg > New > set the period to 26 > OK.

          For information on the LinReg method in NinjaScript please visit the following link: http://ninjatrader.com/support/helpG...regression.htm

          For information on working with indicators please visit the following link: http://ninjatrader.com/support/helpG...indicators.htm

          Please let me know if I may be of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 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
          549 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          549 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X