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

[amibroker] Re: dumb newbie question - - Thanks1



PureBytes Links

Trading Reference Links


Thanks!  I'll try one of these...

--- In amibroker@xxxxxxxxxxxxxxx, "Quad Rate Serial Abby" 
<quad_pumped_abby@xxxx> wrote:
> 
> If you always want the date a certain number back, I think you can
> just assign a variable:
> 
> Daysback = ref(O, -7);
> 
> etc.
> 
> But if that's a fixed date, then I think you have to get the value
> when datenum() == (the date you want), or something along those 
lines.
> 
> There is a way to do it, but this is one of the areas I'm stuck on
> also.  Sorry.
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "mikelaurataylor"
> <mikelaurataylor@xxxx> wrote:
> > 
> > Thanks.  I'll look at your suggestion.
> > 
> > I did find RTGETDATA, which will allow me to get todays open; 
> > yesterdays close, etc. which will work great for real time 
> > trading.   
> > 
> > Is there something that allows me to say "Get the opening price 
for 
> > January 25th" and the "Closing price for January 24th" so I can 
test 
> > specific days out?
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "Quad Rate Serial Abby" 
> > <quad_pumped_abby@xxxx> wrote:
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, "mikelaurataylor"
> > > <mikelaurataylor@xxxx> 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
> > > 
> > > I think your problem is you are referencing the entire array 
of 
> > data,
> > > so it goes back to the first bar.  You want something like 
this:
> > > 
> > > Buy = iif( O > ref (O, -1)* 1.03, 1, 0);
> > > 
> > > Hope this is right.  I'm still a newbie so it would be nice for
> > > confirmation, or just try it and see.





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