[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Revised MACDxPriceOSC (With Zig Filter)



PureBytes Links

Trading Reference Links



Working with Dennis's AFL previously posted using MACD x PriceOSC, is a
revision that also checks for current trend via zigzag funtion. 

Zig is Adjustable Via Parameters Dialog (CTRL-R). And Signals likewise
change while being Adjusted.
Feedback to the status of Zig is also given by Coloring of the barstyle
chart.

//MACD POSC cross,
By Dennis aka theoldchartreader@xxxxxxxxx
//With Zig Confirmaion Filter by OzFalcon@xxxxxxxx <MSG>.
AdjZ =
Param("Zig",10,0,15.0,.1);
ZAC =
Zig(
Close, AdjZ );
UTrend = ZAC >
Ref(ZAC,
-1);
DTrend = ZAC <
Ref(ZAC,
-1);
t1 =
OscP(
3,
6
);
Cond1a=
Cross
(t1,MACD());
Cond1b=
MACD()>-1
AND
MACD()<0;
Cond1= Cond1a AND Cond1b;
Cond2 = MACD()>Signal()-.5;
Buy = Cond1 AND Cond2 AND UTrend;
Sell=Cross(0,t1) AND DTrend;
Color = IIf(O > C, colorBlack, colorRed);
Plot( Close, "Price", color, styleCandle );
PlotForeign( GetBaseIndex(), GetBaseIndex(), colorLightGrey ); 
PlotShapes( shapeDownArrow * Sell, colorRed );
PlotShapes( shapeUpArrow * Buy, colorGreen );
ZColor = IIf(UTrend, colorAqua, colorYellow);
Plot( ZAC, "Zig", ZColor, 3);
/// Iterpretation
"Look at weekly chart first,if it is bullish,";
"then look at daily chart for a entry point";
"Use CTRL-R To adjust Zig Detail";







Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.