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 sjsj2732, 03-23-2026, 04:31 AM
        0 responses
        69 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        312 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        305 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        146 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        105 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X