Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

An n bar Reversal Indicator for Amibroker (AFL)
kaiji
almost 15 years ago
Amibroker (AFL)

Rating:
3 / 5 (Votes 3)
Tags:
amibroker, trend

An n Bar Reversal Program

The theory says that this indicator gives reliable signals of strong trends.
Its disadvantage is that the signal can be a little late, but is offset by its reliability. An uptrend is assumed to be in place if todays high is higher than those of the previous n days,and a downtrend is in place when todays low is lower
than those of the previous n days. Otherwise the existing trend persists. N is commonly set at 3 but can be any value. The implementation here simply shows arrows at trend reversals.

By Brian Wild

Similar Indicators / Formulas

Super Trend
Submitted by Arjun over 14 years ago
Trend Following Indicator
Submitted by trek over 14 years ago
PROFIT TRADING SYSTEM
Submitted by Muralikrishna over 11 years ago
Seasionality
Submitted by saiflingkon over 13 years ago
Vertical Horizontal Filter
Submitted by mahesh.aranake over 14 years ago
TrendChart v2.0 by rmike
Submitted by rmike over 14 years ago

Indicator / Formula

Copy & Paste Friendly
//An n Bar Reversal Program
//The theory says that this indicator gives reliable signals of strong trends.
//Its disadvantage is that the signal can be a little late, but is offset by its reliability.
// An uptrend is assumed to be in place if todays high is higher than those
// of the previous n days,and a downtrend is in place when todays low is lower

//than those of the previous n days. Otherwise the existing trend persists.
//n is commonly set at 3 but can be any value.
//The implementation here simply shows arrows at trend reversals.

n= Param("No. of Bars",3,2,8,1);
TrendUp = H > Ref(HHV(H,n),-1);
TrendDn = L < Ref(LLV(L,n),-1);
TrendUp = ExRem(TrendUp,TrendDn);
TrendDn = ExRem(TrendDn,TrendUp);
PlotShapes(TrendUp*shapeUpArrow,colorGreen);
PlotShapes(TrendDn*shapeDownArrow,colorRed);

0 comments

Leave Comment

Please login here to leave a comment.

Back