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

ALT for Amibroker (AFL)
Miraz
over 13 years ago
Amibroker (AFL)

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

Its useful to understand price pattern..

Similar Indicators / Formulas

Automatic Trend-line
Submitted by kaiji over 14 years ago
trend price
Submitted by ashokwins almost 11 years ago
Price With Regression and Trend
Submitted by Boknoy9999 about 12 years ago
Advanced Trend Lines
Submitted by Arun almost 13 years ago
Trendline Multiple TimeFrame
Submitted by vargasc1 almost 12 years ago
Marva Mid R-Line Signal
Submitted by isfandi over 13 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("ATL");
x = Cum(1);

perchg = 0.3*LastValue( Highest( ROC( Low, 50 ) ));

startvalue = LastValue( Trough( Low, perchg, 1 ) );
endvalue1 = LastValue( Trough( Low, perchg, 2 ) );

startbar = LastValue( ValueWhen( Low == startvalue, x, 1 ) );
endbar = LastValue( ValueWhen( Low == endvalue1, x, 1 ) );

Aa = (endvalue1-startvalue)/(endbar-startbar);
b = startvalue;

trendline = Aa * ( x  - startbar ) + b; 

Plot( Close, "Price", colorBlue, styleCandle );
Plot( IIf( x >= endbar, trendline, Null ), "Trendline", colorRed );
_SECTION_END();

1 comments

1. Pascal SAMSON

This AFL is similar to Automatic Trend Line (ATL) submited by the Administrator some time ago. Good formula, but nothing new.

Leave Comment

Please login here to leave a comment.

Back