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.

Divergence

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.