Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    BertrandNinjaTrader Customer Service

    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 ghoul, Today, 06:02 PM
        0 responses
        7 views
        0 likes
        Last Post ghoul
        by ghoul
         
        Started by Barry Milan, Yesterday, 10:35 PM
        6 responses
        18 views
        0 likes
        Last Post Barry Milan  
        Started by DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        13 views
        0 likes
        Last Post DanielSanMartin  
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        13 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        12 views
        0 likes
        Last Post terofs
        by terofs
         
        Working...
        X