Look up the Status function in the user guide

status("rangetodate")

notanaiqgenius wrote:
>
> I have browsed the help guide but can't find a function to get the 
> "From" and "To" dates that are currently set in the Automatic Analysis 
> Window. Does anyone know a way to get these with code?
>
> (I want this value because I have some inactive / delisted stocks in 
> my database but I have set the "To" date in AA window to today's date. 
> I want to make sure all trades are exited by the last bar in inactive 
> stocks. However, I want open positions to show if the last bar is 
> equal to the "To" date. Ideally I would like to have something like this:
>
> dn = DateNum();
> Sell = dn==LastValue(dn) AND LastValue(dn)!= DATE_NUM_OF_"TO"_DATE;
>
> But right now I am stuck with changing either via Param or manually 
> the date in the code to the To date I am currently using today:
>
> dn = DateNum();
> Sell = dn==LastValue(dn) AND LastValue(dn)!= 1100806;
>
> Maybe I am just being picky/lazy, but I always like to minimize the 
> chance for making user errors and I know I'll forget to change this.
>
> Thanks in advance!
>
> Paul
>
> 
>
>
> __________ Information from ESET Smart Security, version of virus 
> signature database 5353 (20100809) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com


__________ Information from ESET Smart Security, version of virus signature 
database 5353 (20100809) __________

The message was checked by ESET Smart Security.

http://www.eset.com




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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:
    amibroker-dig...@yahoogroups.com 
    amibroker-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to