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 ....
MOC whiplash - Street smarts for Amibroker (AFL)
Rating:
3 / 5 (Votes 2)
Tags:
amibroker, exploration
Street smarts MOC whiplash
Indicator / Formula
Copy & Paste Friendly
_SECTION_BEGIN("www.disciplined.trade");
//smart_street_linda_raschke_MOC Created by www.disciplined.trade
//We are looking for days when a gap in the morning is followed by a
//reversal in the afternoon. This reversal tends to follow-through the next morning AND
//often for the next few days.
SetChartOptions(0,chartShowArrows|chartShowDates);
_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("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
Cond1 = Open <Ref(Low,-1);
dh = Ref(High,-1)-Ref(Low,-1);
Cond2 = C>O AND C>dh;
MOC = Cond1 AND Cond2;
Buy = MOC;
AddColumn(Close,"close",1.2);
AddColumn(Volume,"volume");
AddColumn(MOC,"MOC");
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
_SECTION_END();3 comments
Leave Comment
Please login here to leave a comment.
Back
Concept is good but code seems wrong.
Tried to alter .
May I humbly suggest you place this revision in the Pastie section, so the afl formating is kept intact, with a link here…
Useless code
dh = Ref(High,-1)-Ref(Low,-1);
Cond2 = C>O AND C>dh;
Naturally c<dh cannot be happen