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

Re: [amibroker] dumb newbie question - getting today's opening price



PureBytes Links

Trading Reference Links

today's open price is O
yesterday's open price is ref(O,-1)

Change = O - ref(O,-1);



On Wed, 02 Feb 2005 22:59:52 -0000, mikelaurataylor
<mikelaurataylor@xxxxxxxxx> wrote:
> 
> 
> I'm trying to set a condition on a chart that I'll be tracking
> minute by minute and only want this to occur if todays opening price
> (9:30am) is 3% more than yesterday's close (4pm).
> 
> I have backfilled data from 1/3/05.
> 
> When I test this with a date range of one day (1/25) and say:
> 
> openprice = 0pen [0]
> 
> I don't get the price from 1/25 I get the price from 1/3.
> 
> On an ongoing basis how can I ask the system for todays opening
> price and yesterdays closing price?
> 
> Thanks so much.
> 
> Mike
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/