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

[amibroker] Finding peaks



PureBytes Links

Trading Reference Links




The chart shows the MACD of IBM... the crosshair 
located in an area of positive MACD value...
 
Trying to locate the PRIOR Peak and its locations 
in # of Bars.
 
As can be seen in interpretaion window, the first 
and last bars of thr prior cycle are found correctly, but the value of the peak 
and its location are those of the 2 cycle  ago.
 
This error is not constant as all other cycle shown 
are found correctly.
 
The code that tries to get these values 
is:

BarRange = FirstBar_Priorcycle-LastBar_Priorcycle; 
Peak_Priorcycle = Ref(<FONT 
color=#0000ff>HHV(MACD1,BarRange),-LastBar_Priorcycle);
Bars_Priorcycle = Ref(<FONT 
color=#0000ff>HHVBars(MACD1,BarRange),-LastBar_Priorcycle);
 
Appreciate all help
 
Ara
 
<FONT face=Arial 
size=2> 






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.



Attachment:
Chart.png
Description: PNG image
Attachment:

Attachment: Description: "Description: Binary data"

Attachment: Description: "DEV - #2 MACD Divergance.afl"