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 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
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X