• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

The Indicator Club

  • Indicators
    • All Indicators
    • Free Indicators
    • Join the Club!
    • Indicator TImeline
  • Blog
    • All
    • NinjaScript Tutorials
    • Trade Ideas
    • Free Strategies
    • Favorite Posts
  • FAQ
  • My Account
    • Activate License
    • API Keys
    • API Downloads
  • Contact
  • Cart

November 21, 2016 by The Indicator Club Leave a Comment

Staying on the Right Side of the Trend: LinReg and CCI

In this article we are going to explore the hidden power of two “classic” indicators, Linear Regression (LinReg) and Commodity Channel Index (CCI). Each indicator is / was widely popular, and the methods for trading either vary widely. The concepts we present here will be surprisingly simple, but yet possibly more effective than the conventional thought leadership on either indicator. At the bottom of this article, we have included a video that goes over the same information we present in this article, as well as, two chart templates (one for NinjaTrader 7 and the other for NinjaTrader 8).

The indicators required to build the chart are below and we will explore each on their own and then look at them all combined:

  1. Linear Regression (LinReg) Moving Average
  2. Moving Average Crossover
  3. Commodity Channel Index (CCI) Oscillator

1 + 2. Linear Regression and Moving Average Crossover

The power of The Framework allows us to look at the LinReg in three different views:

  • 8 period LinReg
  • 8 period step LinReg
  • 8 period LinReg normalized as an oscillator

LinReg - No Color Style
The above chart looks dull and boring, but we can fix that easily by using the functions built into each of our indicators, along with adding a MA Crossover indicator. The below chart colors both LinReg based on Rising / Falling and the Oscillator based on whether or not it is above / below 80 / 20:

LinReg - Rising / Falling

3. Commodity Channel Index (CCI)

The LinReg combination does great on it’s own, but the CCI adds two things:

  • Confirmation of the longer term trend
  • Identification of potential areas that are over bought / sold

The CCI is based on a period of 14 and will be colored based on whether or not it is above 0. Also, the background will be colored yellow when the CCI is greater than or less than 200 or -200. Not only that, we overlay the CCI on top of the LinReg oscillator to conserve chart space and focus on price (the CCI and LinReg are small parts of the setup):

LinReg with CCI

Final Piece

The final piece is to switch to our favorite time-frame on the ES, which is a 6 range chart (but you can use whichever chart is your favorite), and explain the setups:

  1. If you are looking for a long, wait for the CCI to be greater than 0, or if you are looking for a short, wait for the CCI to be less than 0
  2. If the CCI ever exceeds 200 when you are looking for a long, or -200 when you are looking for a short, wait for a change in direction
  3. When there is a change in direction, wait for the LinReg oscillator to exceed 80 (for longs), or 20 (for shorts)
  4. A change in direction is defined when the the first of the following occurs:
    1. The MA Cross changes color
    2. The LinReg Step changes color
  5. When the bar colors are in the direction of your bias, this should give us more confidence to hold for a larger profit target

Below are a couple examples of setups:

LinReg and CCI Setup 1

LinReg and CCI Setup 2

Video on Developing Charts and Going Over Setups

 

Chart Templates for NinjaTrader

  1. NinjaTrader 7: Click Here.
  2. NinjaTrader 8: Click Here.

Filed Under: Trade Idea Tagged With: Day Trading, Forex Trading, Futures Trading, Moving Average, NinjaTrader 7, NInjaTrader 8, Oscillator, Stock Trading

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Top Shelf Trader October 6, 2017
  • Use Any Indicator with Our Frameworks: Universal Inputs September 21, 2017
  • NinjaTrader Training: Part 10: Coloring Plots and Backgrounds September 1, 2017
  • NinjaTrader Training: Part 9 – AddPlot and Plot Variables August 31, 2017
  • NinjaTrader Training: Part 8 – Referencing Indicators August 30, 2017

Post Tags

Advance Internals Automated Backtest Day Trading Detrend Forex Trading Free Futures Trading Learn Moving Average MTF NinjaScript NinjaTrader 7 NInjaTrader 8 Oscillator Pivot Points RSI Stock Trading Strategy Vix Trend Volume

Footer

WHO WE ARE

The Indicator Club is made up of normal traders and professional software developers who want to share their indicators for a fraction of the cost it would take to code just one!

The Indicator Club

Purchase & Support

To get access to all of our current and future indicators and strategies, check out our Complete Package.

If you need support please email [email protected], or head over to our contact page.

New Releases

  • NinjaTrader 8 Osc Universal Input Osc Universal Input $497.00
  • NinjaTrader 8 MA Universal Input MA Universal Input $497.00
  • NinjaTrader 8 Bar Orders Bar Orders $297.00
  • NinjaTrader 8 Tick Offset Tick Offset $0.00

Recent Posts

  • Top Shelf Trader
  • Use Any Indicator with Our Frameworks: Universal Inputs
  • NinjaTrader Training: Part 10: Coloring Plots and Backgrounds
  • NinjaTrader Training: Part 9 – AddPlot and Plot Variables

Copyright ©2020 | All Rights Reserved | By Using This Site you Agree to our Terms and Conditions, Risk Disclosures, and Software Agreement

NinjaTrader Disclosure: NinjaTrader® is a registered trademark of NinjaTrader Group, LLC. No NinjaTrader company has any affiliation with the owner, developer, or provider of the products or services described herein, or any interest, ownership or otherwise, in any such product or service, or endorses, recommends or approves any such product or service.

RISK DISCLOSURE: Futures and forex trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or life style. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.

HYPOTHETICAL PERFORMANCE DISCLAIMER: HYPOTHETICAL PERFORMANCE RESULTS HAVE MANY INHERENT LIMITATIONS, SOME OF WHICH ARE DESCRIBED BELOW. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFITS OR LOSSES SIMILAR TO THOSE SHOWN; IN FACT, THERE ARE FREQUENTLY SHARP DIFFERENCES BETWEEN HYPOTHETICAL PERFORMANCE RESULTS AND THE ACTUAL RESULTS SUBSEQUENTLY ACHIEVED BY ANY PARTICULAR TRADING PROGRAM. ONE OF THE LIMITATIONS OF HYPOTHETICAL PERFORMANCE RESULTS IS THAT THEY ARE GENERALLY PREPARED WITH THE BENEFIT OF HINDSIGHT. IN ADDITION, HYPOTHETICAL TRADING DOES NOT INVOLVE FINANCIAL RISK, AND NO HYPOTHETICAL TRADING RECORD CAN COMPLETELY ACCOUNT FOR THE IMPACT OF FINANCIAL RISK OF ACTUAL TRADING. FOR EXAMPLE, THE ABILITY TO WITHSTAND LOSSES OR TO ADHERE TO A PARTICULAR TRADING PROGRAM IN SPITE OF TRADING LOSSES ARE MATERIAL POINTS WHICH CAN ALSO ADVERSELY AFFECT ACTUAL TRADING RESULTS. THERE ARE NUMEROUS OTHER FACTORS RELATED TO THE MARKETS IN GENERAL OR TO THE IMPLEMENTATION OF ANY SPECIFIC TRADING PROGRAM WHICH CANNOT BE FULLY ACCOUNTED FOR IN THE PREPARATION OF HYPOTHETICAL PERFORMANCE RESULTS AND ALL WHICH CAN ADVERSELY AFFECT TRADING RESULTS.