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

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



PureBytes Links

Trading Reference Links



Yes this is true, 
This is more a Visual Indicator (aka Adjustable Zig), Than an actual
trading system.
Actualy, I was originaly using your MAcross, EMAcross
Prediction curves. 
 Im going to have a look at a "cleaner" way of integrating
your Cross Prediction curves rather than ZigZag.
 Im not satisfied with the (original) current revision
(Attached).
<MSG>
At 10:31 AM 5/08/2003 +0000, you wrote:
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






Yahoo! Groups Sponsor












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.




 // MAcross, EMAcross Prediction curves, by Dimitris Tsokakis, July 2003
 // MACD OSC cross, By Dennis aka theoldchartreader@xxxxxxxxx

//Plot(C,"Close",5,8);
K=30;EMAk=EMA(C,k);// Plot(EMAk,"EMAk",1,8);
p=20;EMAp=EMA(C,p);// Plot(EMAp,"EMAp",2,8);
EMAcrossClose=((p+1)*(k-1)*EMAk-(k+1)*(p-1)*EMAp)/(2*(k-p));
//Plot(EMAcrossClose,"EMAcrossClose",4,8);
MAcrossClose=(p*(k-1)*MA(C,k-1)-k*(p-1)*MA(C,p-1))/(k-p);
//Plot(MAcrossClose,"MAcrossClose",2,8);
GraphXSpace=5;

UTrend = EMAcrossClose < Ref(EMAcrossClose, -1) AND MAcrossClose < Ref(MAcrossClose, -1);
DTrend = EMAcrossClose > Ref(EMAcrossClose, -1) AND MAcrossClose > Ref(MAcrossClose, -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 NOT UTrend;
Sell=Cross(0,t1) AND NOT DTrend;

Color = IIf(O > C, colorBlack, colorRed);
Plot( Close, "Price", color, styleCandle );
PlotForeign( GetBaseIndex(), GetBaseIndex(), colorLightGrey ); 

PlotShapes( shapeDownArrow * Sell, colorRed );
PlotShapes( shapeUpArrow * Buy, colorGreen );