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.



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: