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

[amibroker] Re: Fed Policy Announcement



PureBytes Links

Trading Reference Links

My first post apparently didn't go through so here is the repost. 
--------

Below is the code that plots a shape at the specific date (2007-Mar-30). The last four FOMC meetings were as follows:

2006-12-12: FOMC
2007-01-31: FOMC
2007-03-21: FOMC
2007-05-09: FOMC

/*** START ***/

// Plot a shape at the specific Date

Title = Name() + "  \\c25" + Interval(format=2) + 
"  " + Date() + "\\c-1  O=" + O + "  H=" + H + 
"  L=" + L + "  C=" + C;

Plot( Close, "", 42, 64 );
GraphXSpace = 4;

Date_ = "03-30-2007";  /* mm-dd-yyyy */

mm_ = StrToNum(StrLeft (Date_,2)  );
dd_ = StrToNum(StrMid  (Date_,3,2));
yy_ = StrToNum(StrRight(Date_,4)  );

Date_Num = (10000 * (yy_ - 1900)) + (100 * mm_) + dd_;

PlotShapes(shapeDownArrow * (DateNum()==Date_Num), colorRed, 0, H, -12);

/*** END ***/

--- In amibroker@xxxxxxxxxxxxxxx, "tipequity" <l3456@xxx> wrote:
>
> Has anybody code the Fed Policy Announcement date on a price chart? 




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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

For other support material please check also:
http://www.amibroker.com/support.html
 
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/