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

[amibroker] Re: How to plot a "shape" at a specific date - Resolved



PureBytes Links

Trading Reference Links


Thanks, Graham.

Here is the full code, in case someone else was interested. It comes
in handy if you want to put together buy/sell signals from different
trading systems on a single chart.


Title = Name() + "  \\c25" + Interval(format=2) + "  " + Date() +
"\\c-1  O=" + O + "  H=" + H + "  L=" + L + "  C=" + C;
Plot( Close, "", 42, 64 );
GraphXSpace = 4;

Date_ = "08-03-2005";  /* mm-dd-yyyy */

dd_ = StrToNum(StrLeft (Date_,2)  );
mm_ = 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);


-------
> Let's say I want to plot a "down arrow" just above the bar on
2005-Mar-08. Seems a no brainer but I'm completely at a loss with
that one.
> 
> PlotShapes(shapeDownArrow, colorRed, 0, graph=0, Offset=12);
> 
> Where to put a code for the date?
> 
> Help appreciated.
> 
> Lesmond





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

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

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