PureBytes Links
Trading Reference Links
|
"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 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/mOAaAA/3exGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->
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:
http://docs.yahoo.com/info/terms/
|