>From Users Guide or Help: PLOTSHAPES
? plots arrows and other shapes Exploration / Indicators (AFL 2.3) SYNTAX PlotShapes( shape, color, layer = 0, yposition = graph0, offset = ?12 ); RETURNS NOTHING FUNCTION Plots arrows and other shapes on any chart pane. Parameters: shape defines type of the symbol. when shape is zero nothing is plotted values other than zero cause plotting various pre?defined shapes. Odd values plot shape BELOW indicator, even values plot shape ABOVE indicator. · · color defines color of shape · layer defines layer number on which shapes are plotted yposition defines Y?position where shapes are plotted (by default they are plotted 'around' graph0 (first indicator) line) · offset ? (or distance) parameter (by default ?12 ), Offset is expressed in SCREEN pixels. Negative offsets shift symbols down, positive offsets shift symbol up. To place the shape exactly at ypostion, specify 0 as offset · Constants for shapes: shapeNone, shapeUpArrow, shapeDownArrow, shapeHollowUpArrow, shapeHollowDownArrow, shapeSmallUpTriangle, shapeSmallDownTriangle, shapeHollowSmallUpTriangle, shapeHollowSmallDownTriangle, shapeUpTriangle, shapeDownTriangle, shapeHollowUpTriangle, shapeHollowDownTriangle, shapeSmallSquare, shapeHollowSmallSquare, shapeSquare, shapeHollowSquare, shapeSmallCircle, shapeHollowSmallCircle, shapeCircle, shapeHollowCircle, shapeStar, shapeHollowStar, shapeDigit0, shapeDigit1, shapeDigit2, shapeDigit3, shapeDigit4, shapeDigit5, shapeDigit6, shapeDigit7, shapeDigit8, shapeDigit9, shapePositionAbove EXAMPLE Example 1: PlotShapes( IIF( buy, shapeDigit9 + shapePositionAbove, shapeNone ), colorGreen ); Example 2: Graph0=MACD(); Graph1=Signal(); Buy=Cross(Graph0, Graph1); Sell=Cross(Graph1, Graph0); PlotShapes( ( Buy OR Sell ) * ( 1 + Cum( Buy OR Sell ) % 52 ), IIf( Buy, colorGreen, colorRed ), 5 ); GraphXSpace = 5; SEE ALSO PLOT() function AmiBroker 4.90 User's Guide AmiBroker Formula Language (AFL) PLOTSHAPES ? plots arrows and other shapes ----- Original Message ----- From: "murthysuresh" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, May 19, 2007 11:39 PM Subject: [amibroker] Re: define offset without identifying the graph parameter > Graham > What i meant was to print the arrow lower than the default position. > Ref moves it to the earlier bars. I want to move the Y axis lower so > that it does not print on the price bar itself. > > Is that possible. If so how. > > appreciate your response > > REgards > > Seede > > --- In [email protected], Graham <[EMAIL PROTECTED]> wrote: >> >> You can use Ref to shift the plotshape >> >> PlotShapes( Ref(sig,-1)*shapeUpArrow, >> IIf( MA(Volume,20)>100000,colorGreen,colorOrange) ); >> >> -- >> Cheers >> Graham >> AB-Write >< Professional AFL Writing Service >> Yes, I write AFL code to your requirements >> http://www.aflwriting.com >> >> >> >> On 20/05/07, murthysuresh <[EMAIL PROTECTED]> wrote: >> > How do i define the offset without defining the graph parameter? >> > >> > PlotShapes(IIf(sig,shapeUpArrow,shapeNone),IIf( MA(Volume,20) >> > >100000,colorGreen,colorOrange)); >> > Thanks >> > Seede >> > >> > >> > >> > 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 >> > >> > >> > >> > >> > > > > > 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 > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.467 / Virus Database: 269.7.1/807 - Release Date: 5/16/2007 > 6:05 PM > >
