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

Re: [amibroker] sectioning off premarket and post market on a real-time chart...



PureBytes Links

Trading Reference Links

Is there any way of getting the market times (RTH hours and Overnight hours)
from the Group the current symbol belongs? I could not see a function to
retrieve this information, but this doesn't mean it isn't there. :-(

I only trade 3 tradables, but each one has different market hours ... Any
ideas on locating the first bar that is not date based will be welcome, as
the trading day overlaps calendar days.

Thanks.

Geo

----- Original Message ----- 
From: "Herman van den Bergen" <psytek@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, September 18, 2004 02:59 PM
Subject: RE: [amibroker] sectioning off premarket and post market on a
real-time chart...


> You can play with the code below...
> herman
>
> // RT Time references
> StartOfDay = DateNum() != Ref(DateNum(),-1);
> EndOfDay = (DateNum() != Ref(DateNum(),1)) OR (BarIndex() ==
(BarCount-1));
> DaysOpenBar=Cross(TimeNum(),093000);
> DaysCloseBar=Cross(TimeNum(),160000);
> PreHours = TimeNum() < 093000;
> AfterHours = TimeNum() > 160000;



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/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/