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

[amibroker] Intra-Day Database Setup



PureBytes Links

Trading Reference Links

There is a topic in the help files titled "Database Settings". There is a section where it explains how to use the trading hours to define precisely how time-compression works. I would like to know how I can set the Day/Night session start and end times such that the time compression will only take the O,H,L,C from between the market open at 9:30 am eastern to the market close at 4:00 pm eastern. 

I have spent hours trying to adjust these values and then wright a simple code which accurately calculates daily moving averages using time compression in a intra-day time frame. No matter what I try I am always left with assigning the values of O,H,L,C using the TimeNum() >= 093000 and TimeNum() <= 160000 statements.

The goal is the able to use a simple code:
Timeframeset(indaily);
DlyH = H;
DlyL = L;
DlyMA = MA(H-L,10);
Timeframerestore(indaily);
Plot(Timeframeexpand(DlyMA,indaily), "Dly H-L", colorRed, StyleLine);

Thanks.

  Pete  :-)




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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