Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TTM Squeeze code

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

    TTM Squeeze code

    I am in the process of trying to re-create the TTM Squeeze, the concept of which appears to me to have originated on a Tradestation BB way back in 2003. I've got the Bollinger Band and Keltner Channel aspects of it completed, but I'm having a hard time with Linear Regression aspect. I can't see any easy of manipulating the inputs for these calculations within Ninjascript and I was hoping somebody might be able to help me out. The TS code is as follow:

    LinearRegValue(C-((Highest(H,Length)+Lowest(L,Length))/2 + xAverage(C,Length))/2,Length,0)

    I can't seem to find any linear regression function that can be used within NinjaScript, and I can't quite figure out how the current NT linear regression indicators are grabbing their data input values.

    Can anybody help me out here?

    Thank you in advance.

    #2
    TrendTracker, there's a default NT Linear Regression method you can use, it accepts an input of DataSeries - http://www.ninjatrader.com/support/h...regression.htm

    So for your formula you would need to calculate the value to pass to the method first as custom DataSeries.

    Comment


      #3
      WOW! - That was really fast!

      Thank you very much. I should be able to handle it from here. And I'm definitely bookmarking the links you sent me. They look very helpful.

      Comment


        #4
        is there a download of that squeeze indicator??

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        160 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        307 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        244 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        348 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        178 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X