Skip to main content

Vertical Horizontal Filter - VHF for Amibroker (AFL)

RAKESH.NASCENT over 7 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 4)
  • Tags:
    VHF Indicator

Vertical Horizontal Filter For Removing False Signals From Trading System

The VHF indicator measure wether the price is going horizontal (non-directional) or vertical (uni-directional), no indicator in technical analysis has this capacity.

The indicator consist of only one simple line below price chart. There are only two main indication given by the indicator as follow:

  • If the indicator value is high, it suggest a trending market and low value suggest sideway market
  • If it is rising it suggest that the market will start the trend soon. And conversely the falling value suggests that the market is becoming calmer and going to be sideways.

For More Details On Indicator Please Visit www.nascenttraders.com

Screenshots

Indicator / Formula

Copy & Paste Friendly

Apply below price chart

SetBarsRequired(sbrAll,sbrAll);
VHFP = Param( "VHFPERIOD", 20, 2, 100, 1 );
HCP = HHV( C, VHFP );
LCP = LLV( C, VHFP );
NUMERATOR = HCP - LCP;
for ( i=BarCount-1;i> BarCount-VHFP-1;i--);
{
DIFF = abs(C[i] - C[i-1]);
}
DENOMINATOR = Sum( DIFF, VHFP );
VHF = NUMERATOR*100 / DENOMINATOR;
Plot( VHF, "VHF", colorWhite, styleLine );


HH = HHV(VHF, 100);
LL = LLV(VHF, 100);

Plot(HH, "100-HIGH", colorRed, styleLine);
Plot(LL, "100-LOW", colorBrightGreen, styleLine);

4 comments

1. pkgmtnl
over 7 years ago

Plz advise, if it is suitable for EOD only or can be applied in Intraday also? If so then what timeframe?

over 7 years ago

It is applicable in all timeframe. The only thing you may change (if required) is parameters if you want to adjust it.

4. Kushboo
almost 6 years ago

Hi Rakesh….need your help in the above and developing more Algos. Please mail –
khoobani28930@rediffmail.com

Leave Comment

Please login here to leave a comment.