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

Re: [amibroker] Why does this formula produce a "Referencing Future" Error



PureBytes Links

Trading Reference Links

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 <groups@xxxxxxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
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" <wes_zoltran@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->

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/


__._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___