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

EL - Divergence



PureBytes Links

Trading Reference Links

I've been trying to create a ShowMe for Divergence.  The code below
doesn't seem to quiet get it.  I'm stumped, anyone care to take a look ?
Thanks
David

{ShowMe:  MACD Divergence}
Input: FastMA(3),SlowMA(13),nticks(.5);

Value1=MACD(Close,FastMA,SlowMA);
Value2=highest(high,1);
Value3=lowest(low,1);
Value4=Lowest(Low,30);
Value5=Highest(high,30);
Value6=Lowest(Value1,30);
Value7=Highest(Value1,30);

If Value1>Value6[1] and
Value3<Value4 [1] Then plot1(low-nticks,"BullD");

If Value1<Value7[1] and
Value2>Value5[1] Then plot2(high+nticks,"BearD");