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

[amibroker] Re: intraday scan does not work



PureBytes Links

Trading Reference Links


Graham,
You gave a very good suggestion. I did not think about function cross
().

However, it is still not working. I have checked to make sure the 
intraday data around that time period are there.

And another issue I have is that I can only scan it once. If I try it 
again, there is no output to the Alert Output window.
I have to restart the whole amibroker.



--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> If you do not have data at exactly the time you specify then chances
> are you will get no data. It is better to use cross for this I have
> found
> 
> CurValue = ValueWhen( DateNum()==1050114 AND Cross(TimeNum
(),142959,C,1);
> 
> hope this helps
> 
> On Tue, 18 Jan 2005 03:37:58 -0000, jnz88 <jnz88@xxxx> wrote:
> > 
> > 
> > I wrote the following simple script in AA to test the scan 
feature on
> > 1 minute intraday data: ( I already download the intraday data )
> > 
> > ---------------------------------------------------
> > buy=0;
> > CurValue = ValueWhen( DateNum()==1050114 AND TimeNum()
==143000,C,1);
> > AlertIf(1, "", NumToStr(CurValue));
> > ----------------------------------------------------
> > 
> > It does not work!
> > it only return valid CurValue when TimeNum()==160000 which is the 
end
> > of day. It DO NOT work if it is other time like 143000
> > 
> > Why? thanks?
> > 
> > 
> > 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 --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/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/