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

Re: [amibroker] How to get close on a specific date?



PureBytes Links

Trading Reference Links

Hi - try substituting this line:

Pr = ValueWhen( datenum() == start, C );

Steve

----- Original Message ----- 
From: "sebastiandanconia" <sebastiandanconia@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, November 23, 2005 12:46 PM
Subject: [amibroker] How to get close on a specific date?


> There must be a straightforward way to get this, but I seem to be more 
> dense than usual today.:)  How can you get the closing price for a 
> security on a specific date?   
> 
> The closest I've come is this, but I know it can't be right because 
> ValueWhen requires a condition:
> 
> start=ParamDate("Start Date","2005-1-03",0);
> 
> Pr=ValueWhen(start,C,1);
> 
> Plot(Pr,"Price",3,style=styleLine);
> 
> Is there a function other than ValueWhen that will do this?  If not, 
> what condition could I insert?  Or does this require an intermediate 
> step involving counting the number of bars between two dates and 
> subtracting from the current bar? TIA for any help.
> 
> 
> Luck to all,
> 
> Sebastian
> 
> 
> 
> 
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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 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/

<*> 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/