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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          94 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          51 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          81 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          75 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Working...
          X