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

RE: [amibroker] How to find the second lowest Low of the donchian channel ?



PureBytes Links

Trading Reference Links

Hello Bill,

thanks for your help.
I have tried a similar way but the problem is that it would detect it always
when a new low is detected.
I need to know the at every bar in the chart the 2nd lowest low. Yesterday I
thought that I know the solution,
but I have seen now that it isn't correct.
Can anyone help ?



Thomas
www.patternexplorer.com


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of wavemechanic
Sent: Friday, May 11, 2007 9:26 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] How to find the second lowest Low of the donchian
channel ?

If I understand - see if this produces what you want:
 
2ndchannellowback = valuewhen(ref(lowerchannelline, -1) < lowerchannelline,
ref(lowerchannelline), -1), 2);
 
Bill
 
 
----- Original Message ----- 
From: "Thomas" <tzg@xxxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, May 11, 2007 9:21 AM
Subject: [amibroker] How to find the second lowest Low of the donchian
channel ?

> Hello,
> 
> i can't find the solution right now.
> I am using a simple 20 period donchian channel and want to find the 
> second lowest low of the channel. Can someone help ?
> I have tried the following code which isn't correct.
> 
> 
> function BandDn2(array,period)
> {
> LowerBand = Ref(LLV(array,period),-1);
> LowerBandLow2nd = ValueWhen(L>LowerBand,L,1);
> return LLV(LowerBandLow2nd,periods);
> }
> Plot( BandDn2( L, Periods), "Channel Low" + _PARAM_VALUES(), 
> colorBlue, Style ); 
> 
> 
> Thanks 
> Thomas
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.467 / Virus Database: 269.6.6/795 - Release Date: 5/9/2007
3:07 PM
> 
> 
 



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/