Thanks Tomasz
This is a bit confusing for me. I have been using lastvalue() in if statements
to pick the current bars value.
Like this example .. I'm trying to 'latch' that I had a buy signal in my real
time system.
LELatch = StaticVarGet(LE) ;
if (LastValue(Mybuy) AND not LELatch )
{
StaticVarSet(LE,True);
// latch that we had an exit signal in real time
}
Is there a better method than lastvalue?
rgds
----- Original Message ----
From: Tomasz Janeczko <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, February 27, 2007 9:55:34 AM
Subject: Re: [amibroker] Why does this formula produce a "Referencing Future"
Error
LastValue looks for the future - Last bar is "the future" for every bar other
than the last.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "wes_zoltran2" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, February 27, 2007 3:00 PM
Subject: [amibroker] Why does this formula produce a "Referencing Future" Error
> The AB Editor Check function flags this statement as referencing the
> future. I know what a future ref is, but I don't understand how this
> statement fails the test.
>
> DT = LastValue(DateTime());
>
> Can anyone explain why?
>
> Running 4.90 RC3
>
> TIA
>
>
>
>
>
> 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