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.


Enable email alert from MT4 indicator.

First, go to Tools -> Options or click CTRL+O, then you should the this window as shown in the pic

If you will use gmail with SSL then you can use the same SMTP server

Use your email address for SMTP login and password.

The “From” must be the same as your “SMTP login”, you can use a different email for “To”, or just use all of them as one email.

Press “Test” button, you should receive a test email within 5 mins, usually in 2 mins.

Click CTRL+T to check the terminal journal, it should display the following message if you have set up everything correctly:

If you still cannot get any email, please check your firewall, if your security level is too high, it may block the email sent by MT4.

How to correctly use and enable MT4 Expert Advisors EA

It’s very basic concept but for people who never used MT4 before it’s still a very useful information.

First of all, before using of experts, one has to set them up first. Working parameters common for all experts are defined in the client terminal settings window. This window can be opened by the “Tools — Options” menu command or by pressing of accelerating keys of Ctrl+O.

Make sure you checked Allow automated trading. Otherwise the EA will not take any trade even if you load it on chart.

You should see a smile face at the top right corner of your chart when autotrade is enabled.

Otherwise, it will be a unhappy face.


To shut down an expert, one has to remove it from the chart. Expert must have been deinitialized before it is shut down. To remove an expert from the chart, one has to execute the chart context menu “Expert Advisors — Delete” command or attach another expert to the same chart. Besides, the expert can be removed from the chart at profile or template change.


  • at client terminal shutdown, all experts are shut down, too;
  • at chart closing, the expert attached to this chart will be shut down;
  • at imposing of another expert, the previous one will be removed after confirmation;
  • deletion of the expert from the “Navigator” window does not shut down the expert of the same name imposed in the chart;
  • disabling of experts in the client terminal settings does not provide complete disabling of experts. This option stops launching of the start() function of each expert, but the init() will continue to execute.

The relationship between EA(Expert Advisors ) and Indicator in MT4 MT5 MQL4 MQL5

Basically, the EA (Expert Advisor) is an autotrader that trades automatically by itself.
The trading rules of the EA may involve more than one indicator.

Indicator is the scripts that plot data related to Technical Analysis on chart, such as SMA(simple moving average).

The indicators used by an EA are built-in with it, any indicator you have on chart will not affect the EA. The indicators and EA on chart work separately, they will not interfere with each other.

For example, you have an EA which has the following trading rules:

  • Long: when SMA(9) cross above SMA(30)
  • Short: when SMA(9) cross below SMA(30)


  • The EA will trade without any SMA on chart.
  • Even if you add RSI, MACD, SMA(15) and EMA(55) on chart, the EA will still trade by those rules listed above.
  • If you run the EA on chart, it will not plot any SMA unless you add the SMA indicator.
  • The chart type you used will NOT affect the EA,
  • If you have SMA(9) and SMA(30) on chart, and you changed them to SMA(5) and SMA(45) , it will NOT affect the EA. EA will still trade by those rules listed above.
  • You can only change the way the EA trade by adjusting its input.

Since you may load the indicators that the EA used on chart as reference, please make sure you have the same input value for both EA and the Indicators, otherwise you will see inconsistency. 


For example,  you have an EA which has the following trading rules:

  • Long: when SMA(9) cross above SMA(30)

You add SMA(14) and SMA(50) on chart and you also add the EA. 

But the EA did not enter/exit the trades when the 2 SMA on chart cross over.

That’s because your EA was trading by the rule of SMA(9) and SMA(30).

What you see on chart is SMA(14) and SMA(50).





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: