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 ....
Trading Trendline Breaks for Amibroker (AFL)
Rating:
3 / 5 (Votes 3)
Tags:
trading system, amibroker
Get trendline breaks.
Screenshots
Similar Indicators / Formulas
weighted moving average scan
Submitted
by naninn almost 14 years ago
Kase Peak Osc. V2 batu
Submitted
by batu1453 over 10 years ago
Kase CD V2batu
Submitted
by batu1453 over 10 years ago
Ichimoku
Submitted
by prashantrdx over 10 years ago
EMA System Ribbon
Submitted
by yo123 almost 14 years ago
Three-Bar Inside Bar Pattern
Submitted
by EliStern almost 14 years ago
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("Trading_Trendline_Breaks"); zz0 = Zig( Close, 7 ); zz1 = Ref( zz0, -1 ); zz2 = Ref( zz0, -2 ); tr = ValueWhen( zz0 > zz1 AND zz1 < zz2, zz1 ); pk = ValueWhen( zz0 < zz1 AND zz1 > zz2, zz1 ); PU = tr + abs( tr ) * 0.05; PD = pk - abs( pk ) * 0.05; res = IIf( Close >= PU AND zz0 > zz1, 1, IIf( Close <= PD AND zz0 < zz1, -1, 0 ) ); res = ValueWhen( res != 0, res ); Buy = res == 1 AND Ref( res, -1 ) == -1; Sell = res == -1 AND Ref( res, -1 ) == 1; Short = Sell; Cover = Buy; Plot( zz0, "ZigZag", colorBlue, styleThick ); Plot( Close, "Price", colorBlack, styleBar ); //PlotShapes( Buy * shapeUpArrow, colorGreen, 0, L, -60 ); //PlotShapes( Sell * shapeDownArrow, colorRed, 0, H, -60 ); PlotShapes( Buy * shapeUpArrow, colorGreen ); PlotShapes( Sell * shapeDownArrow, colorRed); Plot( Flip( Buy, Sell ), "Trade", colorPaleGreen, styleArea | styleOwnScale, 0, 1 ); _SECTION_END();
1 comments
Leave Comment
Please login here to leave a comment.
Back
I think this is zig zog break out
Subrahmanyam