[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


The comment about the date format (after "Date_" statement) should be:

/* dd-mm-yyyy */


LV

> 
> 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);






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

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/