PureBytes Links
Trading Reference Links
|
The attachment displays the indicator on a "less" volatile market.
Regds
Gerard
_SECTION_BEGIN("Trading CAREYMAC");
// CAREYMAC INDICATOR - Short-term (ST) & Medium-term (MT)
/* This formula was developed to signal short-term trend changes
in the direction of the CONFIRMED Medium-Term trend.
What I had in mind was in effect a "buy in the dips" strategy for
traders,
where entries would only be made in the direction of the medium term
trend.
The red histogram plots the MT trend as being up (above zero line)
or being down (below zero line).
The black line plots the ST trend in the same manner.
/* Long Entry trading Signals
The red Histogram MUST be above zero.
The long entry is signalled when the black ST line, after dipping
BELOW the zero line, reverses back up (green arrow).
Short Entries trading Signals
The red Histogram MUST be below zero.
The Short entry is signalled when the black ST line, after dipping
ABOVE the zero line, reverses back down (red arrow). */
// NB. Exits are NOT sigalled. Your specific exits will enable
backtesting.
// As usual, signals appear more reliable in less volatile markets.
// CODE:
// CAREYMAC
// AFL code by Gerard Carey
// 13th Feb 2006
ST= (EMA(Avg,2)-EMA(Avg,10)) + (EMA(Avg,1)-EMA(Avg,5)) ;
MT= (EMA(Avg,6)-EMA(C,30)) + (EMA(Avg,3)-EMA(Avg,15)) ;
Plot(ST,"CAREYMAC/ST",1,4);
Plot(MT," CAREYMAC/MT",4,4);
Plot(MT,"",4,2+4);
Plot(0,"",IIf(C>EMA(C,34),6,4));
CondA= MT>0 AND (ST<0 OR Ref(ST,-1)<0) AND ST>Ref(ST,-1)
AND Ref(ST,-1)<Ref(ST,-2) ;
PlotShapes( shapeSmallUpTriangle*CondA, 27) ;
CondB= MT<0 AND (ST>0 OR Ref(ST,-1)>0) AND ST<Ref(ST,-1)
AND Ref(ST,-1)>Ref(ST,-2) ;
PlotShapes( shapeSmallDownTriangle*CondB, 4);
_SECTION_END();
--
http://www.fastmail.fm - Accessible with your email software
or over the web
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Attachment:
CAREYMAC.doc
Description: MS-Word document
|