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

[amibroker] Re: Revised MACDxPriceOSC (With Zig Filter)



PureBytes Links

Trading Reference Links

Michael,
In your Buy/Sell conditions you use UTrend and DTrend.
This fact makes your rules unrealistic.
UTrend and DTrend are zig related conditions and their truth is known 
some bars after the historical occurrence you see in the past bars.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Michael.S.G." <OzFalcon@xxxx> 
wrote:
> 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 ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/