PureBytes Links
Trading Reference Links
|
You will never get a true result with C < LLV(L,30) as the close is always
greater or equal than the low
conversely C>LLV(L,30) will always be true
This is because LLV(L,30) includes todays bar and if today is lowest low
close will be >=it
C>Ref(LLV(L,30),-1) will give if todays close is > than the previous bars
LLV
If you want to check that a bar close is never lower than previous LLV you
can simply use a sum finction or Barssince function
Here are some examples to get you started
Sum(C>Ref(LLV(L,30),-1),30)==30
Sum(C<Ref(LLV(L,30),-1),30)==0
BarsSince(C<Ref(LLV(L,30),-1))>=30
You will just need to ensure the bar numbers are checking the correct number
of history bars
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 17/12/06, Sidney Kaiser <skbiker@xxxxxxxxx> wrote:
>
> *Close* > LLV(*Low*, 30) tells me if todays close is greater than the
> lowest low in the last 30 days.
>
> What I need is to test if the close *remains* greater than the previous 30
> day low.
>
> I am not certain, but I take this to mean the close should not go below
> the previous 30 day low
> at any time during the 30 day period. Would this require a loop to
> evaluate it properly?
>
> Implementation ideas?
>
> Cheers, Sid
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.21/589 - Release Date: 12/15/2006 5:10 PM
|