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

Plus Directional Movement Breakout System for Amibroker (AFL)
nbkblr
over 13 years ago
Amibroker (AFL)

Rating:
2 / 5 (Votes 4)
Tags:
oscillator, trading system, amibroker

Hi,

I got this from a blog, seems good

Similar Indicators / Formulas

Rahul Mohindar Oscillator (RMO)
Submitted by kaiji almost 15 years ago
Trending Wave 2 System
Submitted by Dryden over 12 years ago
Price Oscillator
Submitted by ariful_islam about 14 years ago
Stochastic
Submitted by expert about 14 years ago
STOCH RSI CROSSOVER
Submitted by sonia.b over 12 years ago
CCI ZERO CROSS WITH ALERT
Submitted by thanigay2k about 11 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Plus Directional Movement Breakout System");

periods = Param("Periods", 14, 2, 200, 1);
pChange = Param("% Change", 5, 0.1, 10, 0.1);

pdiVal = PDI(periods);
pdiPeak = Peak(pdiVal, pChange, 1);
pdiTrough = Trough(pdiVal, pChange, 1);

Buy = Cross(PdiVal, Ref(ValueWhen(pdiPeak != Ref(pdiPeak, -1), pdiVal, 1), -1));
Sell = Cross(Ref(ValueWhen(pdiTrough != Ref(pdiTrough, -1), pdiVal, 1), -1), pdiVal);

Buy = Exrem(Buy, Sell);
Sell = Exrem(Sell, Buy);

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Price Color", colorBlack ), styleNoTitle | ParamStyle("Price Style") | GetPriceStyle() ); 
PlotShapes(shapeUpArrow * Buy, colorGreen, 0, L, Offset=-20);
PlotShapes(shapeDownArrow * Sell, colorRed, 0, H, Offset=-20); 

_SECTION_END();

3 comments

1. godbeest

EROR AFL !!!!!!!!!!!!!!!!!

2. Rakesh Kumar

Working fine for me.

3. papahken

Nice Indicator

Leave Comment

Please login here to leave a comment.

Back