PureBytes Links
Trading Reference Links
|
You need to know where the peaks are located. Either the actual bar number
or how many bars ago relative to last bar.
Using elative values assume:
Peak1 = 10; // 10 bars before last bars
Peak2 = 35;
Lowestvalue = Ref(LLV(Low,(Peak2 - Peak1),-Peak1); // Lowest
vlaue between peaks
Lowestvlauebar = Ref(LLVBars(Low,(Peak2 - Peak1),-Peak1); // Bars since
lowest value and Peak1
CCILowest = Ref(LLV(CCI,-Lowestvaluebar),-Peak1);
There may be error in code, but you get the idea.
----- Original Message -----
From: "umrperumal" <umrperumal@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, March 21, 2008 9:08 AM
Subject: [amibroker] How to find lowest price between two peaks
> Hi TJ and others,
>
> I am not able to find code to get the following values:
>
> 1) Lowest price between two peaks (Peak1 & Peak2)
> 2) CCI value corresponding to the lowest price above(lowest price
> between two peaks)
>
> Any help with codes for the above is highly appreciated.
>
> With thanks and kind regards
>
> UMR Perumal
>
>
>
>
> ------------------------------------
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
>
>
>
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|