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 DayTradingDEMON, Today, 09:28 AM
        4 responses
        21 views
        0 likes
        Last Post DayTradingDEMON  
        Started by geddyisodin, Yesterday, 05:20 AM
        9 responses
        50 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by George21, Today, 10:07 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by Stanfillirenfro, Today, 07:23 AM
        9 responses
        24 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by navyguy06, Today, 09:28 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X