PureBytes Links
Trading Reference Links
|
Hi Thomas - re 2nd lowest low, does this code do what you want?
Steve
Array = Low;
Periods = 20;
LowestLowValue = LLV( Array, Periods );
SecondLowestLowValue = 1000000;
for ( i = Periods - 1; i >= 0; i-- )
{
ShiftedArray = Ref( Array, -i );
SecondLowestLowValue = IIf( ShiftedArray > LowestLowValue AND ShiftedArray <
SecondLowestLowValue, ShiftedArray, SecondLowestLowValue );
}
Plot ( Close, "Price", colorBlack, styleCandle );
Plot( LowestLowValue, "LLV", colorRed, styleLine );
Plot( SecondLowestLowValue, "2ndLLV", colorBlue, styleLine );
----- Original Message -----
From: "Thomas" <tzg@xxxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, May 14, 2007 3:10 AM
Subject: [amibroker] Re: opposite of NULL available ?
Hello Joseph,
thanks, i have found a solution.
Now i am looking for a way to find the second lowest Low over any
period. It seems not to be so easy.
Kind regards
Thomas
www.PatternExplorer.com
--- In amibroker@xxxxxxxxxxxxxxx, "J. Biran" <jbiran@xxx> wrote:
>
>
> I am not sure I understand what you are trying to achieve (what does
> endless mean?).
>
> Once you initialize a variable to ANY value it will no longer be
NULL.
>
> Maybe just set it initially to -1.0 or +999999 (not a possible
value)
> and go from there...
>
>
>
> Joseph Biran
> ____________________________________________
>
>
> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On
> Behalf Of Thomas Z.
> Sent: Sunday, May 13, 2007 12:20 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: RE: [amibroker] opposite of NULL available ?
>
> Hello,
>
> i would like to initialize a variable (short stop) of my loop with
> endless
> value, not search if a value is endless.
> Is there any way ? Otherwise I think I have to solve it through
> another way.
>
>
> Thomas
> www.patternexplorer.com
>
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On
> Behalf
> Of Tomasz Janeczko
> Sent: Sunday, May 13, 2007 1:44 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] opposite of NULL available ?
>
> Hello,
>
> NOT IsNull( ...)
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: J. Biran
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Sunday, May 13, 2007 1:22 AM
> Subject: RE: [amibroker] opposite of NULL available ?
>
>
> !NULL or NOT NULL ??
>
>
>
> Joseph Biran
> ____________________________________________
> ________________________________________
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On
> Behalf
> Of Thomas Z.
> Sent: Saturday, May 12, 2007 11:53 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] opposite of NULL available ?
> Hello,
>
> does anyone know if the opposite of NULL is available ?
> I want to use an unlimited value inside my loop to start.
>
>
> Thomas
> www.patternexplorer.com
>
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/
|