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

[amibroker] Code for up down arrows with candlesticks



PureBytes Links

Trading Reference Links

 Here is a code snipit that might be useful:



Plot(Close,"Close",colorBlack,styleCandle);

PlotShapes(IIf((Buy),shapeUpTriangle,shapeNone),colorGreen,0,
Close,-1000);

PlotShapes(IIf((Sell),shapeDownTriangle,shapeNone),colorRed,0,
Close,1000);

IIf(Close < Open,(DnArrow = Low), (DnArrow = High));
IIf(Close > Open,(UpArrow = High), (UpArrow = Low));

PlotShapes(IIf((Buy),shapeUpArrow,shapeNone),colorBlue,0,
UpArrow,-20);

PlotShapes(IIf((Sell),shapeDownArrow,shapeNone),colorBlue,0,
DnArrow,-20);


Plot(IIf(Month()!=Ref(Month(),-1),1,0),"",32,
styleHistogram|styleOwnScale|styleNoLabel|styleThick,-0.010,50);

Plot(IIf(DayOfWeek()<Ref(DayOfWeek(),-1),1,0),"",16,
styleHistogram|styleOwnScale|styleNoLabel,-0.010,65);
                                                         

                                                                   
                                                                     
 It gives up and down arrows on chart with triangle on the bottom, 
the arrows are in the proper postion for candlesticks.

 Also it gives ticks for the months and days at the bottom of the 
screen.

                         Cliff s
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                                     
                                                        



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/O10svD/Me7FAA/AG3JAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/