PureBytes Links
Trading Reference Links
|
<FONT
face=Verdana size=2>chrismontgomery1966,
I would rather see a formula, which does not use
the peak and trough method. I am just trying to point you in the right
direction.
You could use this method where, ref(L, -1) =
LLV(L, 10) to pinpoint a low, and a similar method to pinpoint the
indicator.
You could then use a longer period, say 25
periods, to pinpoint another low in, both the price as well as the
indicator.
Then, give the condition, where the price
low is lower than the previous Low, and the indicator low is higher than its
previous low.
Signals based on the peak and trough
method are notorious for appearing late, or sometimes
disappearing.
DusantChief Architect<A
href="">http://www.candlestrength.com/
----- Original Message -----
From: <<A
href=""><FONT face=Verdana
size=2>chrismontgomery1966@xxxxxxxxx<FONT face=Verdana
size=2>>
To: <<A
href=""><FONT face=Verdana
size=2>Metastockusers@xxxxxxxxxxxxxxx<FONT face=Verdana
size=2>>
Sent: Sunday, May 02, 2004 7:16 AM
Subject: [Metastockusers] expression must contain
only constant data
<FONT face=Verdana
size=2>> "This variable or expression must contain only constant
data."> =============> peak1:= Peak(1,Fml("MACD
Histogram"),5);> peak2 := Peak(2,Fml("MACD Histogram"),5);>
peakbars1:=PeakBars(1,Fml("MACD Histogram"), 5);>
peakbars2:=PeakBars(2,Fml("MACD Histogram"), 5);> > Ref(H,-
peakbars1 ) > Ref(H,-peakbars2) > AND peak2 > peak1>
===============> I am trying to determine if there is a bearish
divergence> between Price and an indicator. > > Interpretes
as follows: There are two peaks in the Histogram> the latest one is lower
that the second ( prior ) one. While the> highest high price is higher
than the prior one.> > This is where the error occurs.>
Ref(H,- peakbars1 ) wants a constant.> > Any way around this
limitation?> > Also is it incorrect to try to use Peak and Trough
functions as they > rely on the zigzag function?> > Many
thanks,> Chris> 7.2EOD and 9EOD> > {MACD
Histogram}> EMA12 := Mov( C,12,E ) ;> EMA26 := Mov( C,26,E )
;> FastMACD := ( EMA12 - EMA26 ) ;> SlowMACD := Mov( FastMACD ,
9,E );> FastMACD - SlowMACD ;
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/Metastockusers/
To unsubscribe from this group, send an email to:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|