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

RE: EL - Divergence



PureBytes Links

Trading Reference Links

David,

Why the variable nticks?  I removed it and the ShowMe seems to plot correctly.

Paul 

> -----Original Message-----
> From: David Powell [mailto:dwpowell@xxxxxxxxxxxxxxxx]
> Sent: Tuesday, October 20, 1998 7:25 PM
> To: omega-list@xxxxxxxxxx
> Subject: EL - Divergence
> 
> 
> 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");
> 
> 
>