Linear Regression Channel indicator Pro version for NinjaTrader 8

In statistics, linear regression is a linear approach for modelling the relationship between a scalar dependent variable y and one or more explanatory variables denoted X. The case of one explanatory variable is called simple linear regression. Wikipedia

Linear Regression Channel (LRC) is a very useful tool in trend analysis, especially for long term trend.

This Linear Regression Channel Pro version (LRC Pro) indicator has the following features:

  • Adjust the number of bars (Period input) used in the calculation of Linear Regression Channel.
  • Adjust the width of three channels with different values.
  • Adjust the number of bars to extend to the right side, 0 means no extension.



It works on the following bar types:

If you used Linear Regression Channel indicator before, you must know that the trendlines are not fixed. That trend is determined by calculating a Linear Regression Trendline using the least squares method.


With different ‘Period’ input value, the Linear Regression Trendlines vary greatly, let see an example of how LRC changes over time.



The chart below is taken from 1/26 with ‘Period’ =275, the Close price is above the 3rd upper trendline.



The chart below is taken from 2/5 with ‘Period’ =150, the Close price on 1/26 is still above the 3rd upper trendline, but the three Highs before 1/26 are within the trendline now.

The Low on 2/5 is below the 3rd lower trendline.


The chart below is taken from 2/5 with ‘Period’ =275, the Close price on 1/26 is still above the 3rd upper trendline, The Low on 2/5 is above the 3rd lower trendline.

The images below are random screenshots.

You can also use more than one instance with different inputs.


Free Auto TrendLine indicator for Ninjatrader NT8

This indicator will automatically plot the upper and lower trend lines based on the most recent swing points.

It works on all timeframes that officially supported by Ninjatrader 8.

You are free to use and share it.


  • UpperLength1: the number of bars on the left and right side of the peak C.
  • UpperLength2: the number of bars on the left and right side of the peak A.
  • LowerLength1: the number of bars on the left and right side of the trough D.
  • LowerLength2: the number of bars on the left and right side of the trough B.

If set UpperLength1 to 5, it means the high at point C is higher than the high of 5 bars on both left and right sides.

RSI Triple Divergence indicator and Market Analyzer for NinjaTrader NT8.

Divergence is very common and useful in technical analysis. It indicates possible reversal signals when there are discrepancies between RSI and price movement.

The definition of divergence is when price and indicator move in different direction,
for instance, when price is in uptrend and reaches a higher high where the indicator is in downtrend.

What is RSI Triple Divergence?

The concept of triple divergence is intuitional, if there are three continueous divergences in a row between current High and previous Peak then it will trigger a signal.

For example, a bearish RSI triple divergence is shown in the chart below, bar A is current High and it has a RSI divergence with bar B which is previous peak. Divergence also exists between A and C (the 2nd previous peak) as well as A and D(the 3rd previous peak).

The following chart is a bullish RSI triple divergence. There is divergence between bar A and bar B (previous trough), bar A and bar C (2nd previous trough), bar A and bar D (3rd previous trough).

Why Triple Divergence? Is it better than normal divergence?

I have created many single divergence indicators on different platforms but they only check the divergence in one of the three terms, short-term, mid-term or long-term. Regular divergence indicator will not exam all three terms at the same time, but Triple Divergence is capable of completing the task.

Sometimes there are too many divergence appear in a short range for the normal divergence indicator.

Let see these two charts below, the first one is Triple Divergence.

The 2nd one is normal divergence which has more signals.

More signals is not necessary a bad thing, but a signal (Triple Divergence) is confirmed via short, mid and long terms could be more solid.

It doesn’t necessarily mean the Triple Divergence is definitely better than the normal version, they detect signals from different angles.


  1. Instant signal on current(last) bar, no repaint.
  2. Alert when a signal appear.
  3. Select different sound alert files.
  4. Enable to show lines between Highs and Lows.
  5. Please note: it doesn’t work in Renko chart.

You can add new sound files to your NT8\sounds directory.

The following video shows how it plots in realtime.

More screenshots.


It also comes with a Market Analyzer which makes it possible to track signals within any timeframe.  The input “Range” is used to check if there was a signal within the given number of bars.


Multi Time Frame MTF Trend 4 in 1 indicator for Ninjatrader NT8

Price can be up trend and downtrend simultaneously in different timeframes.

Experienced traders know the importance of looking at Multiple Time Frames.

Analyzing multi time frame chart allows trader to have a greater view on the price action.

This MTF trend indicator shows the trend of current time frame and 3 higher time frames in a single chart. In addition, it will check the consistence of all 4 time frames.

The green dots represent uptrend, and the red dots represent downtrend.

The ‘trend period’ is used to measure the direction of price within the given number of bars.

The dots of value 1 at the bottom is the trend of ‘timeframe 1’

The dots of value 2 is the trend of ‘timeframe 2’

The dots of value 3 is the trend of ‘timeframe 3’

The dots of value 4 is the trend of current timeframe.

If current and 3 higher time frames are in the same direction, the dots at the top will appear.

Otherwise, there will be no dots at value 5.

‘timeframe1’ ‘timeframe2’ and ‘timeframe3’ must be higher than current timeframe, if your chart is 15min, ‘timeframe1’ ‘timeframe2’ and ‘timeframe3’ must be 20min or higher.

It will highlight bars when trends are inconsistent in different timeframes.

You can change the highlight color, or disable this feature.

The highlighted bars represent the situation where price may change its direction from previous trend, or in a short-term adjustment.

Due to the nature of MTF, the plots from higher timeframes may vary before the related higher timeframe bar is closed. For example, the following chart used 3-hour as TF3, assuming the 3-hour bar is start from 9:00 and end at 12:00, then the color of dots inside the box may change between 9:00 and 12:00. After 12:00 the 3-hour bar is closed, then the color of dots inside the box is fixed, it won’t change anymore.


Flow of Fund divergence indicator for Ninjatrader NT8 with auto self backtest and alert.

VIP price: $220  This is a 1 year license. License renew price will be 50% off for the 2nd year and after.

The most recent Flow of Fund divergence indicator best input combination and backtest results.
You can get this indicator for FREE if you can find any indicator(with price less than $1000) that can beat our backtest results.

Before purchasing, please make sure you read all the information and understand how this indicator works.

The reason I created this indicator is because I was asked many times about what was the best input for some indicators, it is a really good question, but it’s also the hardest one to answer. Based on my knowledge, the best input for an indicator is not fixed, it varies and all depends on the market(FX, STOCK or FUTURE), profit target and timeframe you test it.

For example, MACD is a very popular indicator with couple inputs, but what is the best combination for it? Assuming we have an input combination which is really good in 5 min chart for FX pair USD/CAD with a 30 ticks profit target, and we found this combination in a backtest range of 2000 bars. But if you test this combination in 500 bars, the result could be awful. Further than that, you may not get the same performance with this input combination in other FX pairs even with the same timeframe and backtest range.

My conclusion is that the best input of indicators only exists in certain conditions. The best input of an indicator may vary in different timeframes, profit target and market. One combination cannot archive the best results in all conditions, in order to acquire the best performance, we need to explore unique input combinations in different situations.

The Flow of fund(FOF) divergence signal indicator consists of the following parts: The Flow of fund histogram, FOF trend line, back test result in sub chart and divergence signal in main chart. The signal is instantly drawn on current bar and will not repaint.

HISTOGRAM shows an approximate amount of money get in or out of the market within 1 bar. If selling pressure is stronger than buying pressure, it will be a red histogram, otherwise, it will be a green histogram.

Flow of fund trend line indicates the short or long term movement of the flow, determined by the “Length of FOF” input you set.

The back test result is calculated based on the current chart setting and indicator inputs combination.

It works on all official timeframes, not work on Renko chart.


The divergence signal has two types, bearish and bullish. A blue dot will be drawn above price candle bar when there is a bearish divergence between FOF and price trend. A yellow dot will be drawn below price candle bar when there is a bullish divergence between FOF and price trend.
Let’s use the char below to explain how a divergence signal is detected.

Let’s use the char below to explain how a divergence signal is detected.

A bullish divergence occurs when the price hit a lower low and the FOF line is in uptrend.
A bearish divergence occurs when the price hit a higher high and the FOF line is in downtrend.
There is a sound alert when a signal appear, you can turn it on/off from the input.

The divergence signals depend on both price and FOF value, different input combination will generate different signals.

One input combination could be very good for bearish divergence signal, but it may cause bad performance to bullish signal. In this case, it’s recommended to use two FOF DIV indicator at the same time with different settings to get better result for both bullish and bearish signals. In order to do that you will need to turn OFF Show Bear Signal input for one of them and turn OFF Show Bull Signal input for another.

The chart below is an example of loading two FOF DIV with different settings.

Backtest result

The most useful function of this indicator is the automatic backtest.

It makes possible for users to know in advance whether the inputs could lead to a good result or not. All you need to do is trying different input combinations until you find one which is good enough for you.

There are thousands of different combinations of input, it will take quite a while to find the best one for a single symbol in a one timeframe. If you don’t have the time to do the test, we also provide a service to help you with this task.  Please check our Flow of Fund divergence indicator best input combination data mining service.

Please note that the auto target line shown in the chart below is sold separately.

Some videos:


Critical Support & Resistance Level (Supply & Demand Zone) indicator and Market Analyzer for Ninjatrader NT8

The NT8 version will include chart indicator and Market Analyzer.

Support & Resistance Level and Supply & Demand Zone are very common and popular jargon in technical analysis.


What is the difference between Support & Resistance Level and Supply & Demand Zone?

In my opinion, Support & Resistance Level is the value of price that tested couple times and hard to break. The zone is formed by two adjacent levels where price may oscillate between those two levels.

Imagine the levels as horizontal lines, and the zones are areas between two horizontal lines.


Why are they important?

In a nutshell, they indicate where the price direction may reverse so you can act accordingly.


There are a couple methods to draw the Support & Resistance Level and Supply & Demand Zone, In most case, people will use swing high or low, or pivot points as the level. But there are too many of them, and not all pivot points will become Support & Resistance Level.


Some of the support or resistance level is hard to break, but after the price break through that level, resistance will become support and vice versa, I define it as Critical Level.


If you draw a critical support or resistance level from the current bar and move backward to where it started, you will notice that some levels are formed by the pivot points from hundreds of bars ago. It’s impossible to discover the Critical Levels if you don’t have enough bars loaded on chart.


The purpose of this indicator is to plot critical support and resistance level automatically on chart.

It will work on all market, Stock, Forex and Futures. It also works on all timeframes.


  • The Strength inputs control the intensity of Support & Resistance Level.
  • The Alert input is the switch of alert function.
  • By enable Enhanced mode, the indicator will be more critical.
  • Check Showzone input to plot colored zones.

The Market Analyzer Columns will list the following conditions between current Close and the indicator’s values:

“Above Supply Zone”;
“Below Demand Zone”;
“Inside Demand Zone”;
“Inside Supply Zone”;
“Cross above Upper Support Level”;
“Cross above Lower Support Level”;
“Cross Below Upper Support Level”;
“Cross Below Lower Support Level”;
“Cross above Upper Resistance Level”;
“Cross above Lower Resistance Level”;
“Cross Below Upper Resistance Level”;
“Cross Below Lower Resistance Level”;
“Between Supply and Demand Zone”;
“Supply and Demand Zone may reverse or too close to each other”;

After import the file, you will be able to see it under the MarketAnalyzerColumn list as shown in below:


You can add the  Market Analyzer Column more than once with different timeframe and different inputs.


Auto ZigZag Fibonacci extension indicator Ninjatrader NT8

Fibonacci retracement is a method of technical analysis for determining support and resistance levels. They are named after their use of the Fibonacci sequence. Fibonacci retracement is based on the idea that markets will retrace a predictable portion of a move, after which they will continue to move in the original direction.

This custom Ninjatrader indicator will plot Fibonacci extension lines automatically from previous Zigzag High or Low. It works on any timeframe and chart type that supports ZigZag, such as Renko, Heiken Ashi, Range and Tick.

It uses the built-in version of Zigzag from NT8, but instead of plotting Zigzag on chart, it draws the Fibonacci extension lines.

It has all the inputs of Zigzag and two additional inputs for Fibonacci extension, if you checked “Show Extra lines”, it will plot the Fibonacci retracement of 0.236, 0.382 and 0.618 above and below the 0% and 100%.


If “Use Recent ZigZag” is enabled, the indicator will use the most recent stable ZigZag, otherwise it will use the previous one. Please check the images below for a better understanding.

The indicator may not work properly if there was not enough bars on the chart.

In general, 800 bars is good, but it also depends on the ZigZag Deviation value you set.

The bigger the Deviation value is the more bars you need to load.

You can change “bars to load” by following the pic below.

The fastest way to access your fav inputs is saving it as Templates.

The price percentage change of Stock, Forex and Futures vary widely in the same timeframe.

In most case, Stocks have higher percentage change than Forex and Futures.

Deviation percent value 0.01-0.065 is good for Forex in 1 to 5 minutes chart, but it may not work well for stocks or futures.

Please check the screenshots below to get some ideas of how to properly set the inputs.

Example of Heiken Ashi:

Example of Renko:

Example of Tick.

Example of  Range:

Example of minutes: