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 ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Good Trends for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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 ); |