Thanks Mike. As always, you are straight to the point and you helped me a lot! :)
Louis 2008/7/31 Mike <[EMAIL PROTECTED]> > Louis, > > Yes, you can write text to a chart at the bar of interest pretty > easily. Have a look at the PlotText function. > > http://www.amibroker.com/guide/afl/afl_view.php?id=309 > > I gave a code sample a while back that you can use as a > reference. > > http://finance.groups.yahoo.com/group/amibroker/message/124743 > > Mike > > > --- In [email protected] <amibroker%40yahoogroups.com>, "Louis P." > <[EMAIL PROTECTED]> wrote: > > > > Mike: Would it be possible to add a twist; e.g. writing over the > chart what > > is buyprice and sellprice? > > > > Thanks, > > > > Louis > > > > 2008/7/31 Louis P. <[EMAIL PROTECTED]> > > > > > Thanks Mike, > > > > > > This is a great response to a question I was to ask! :-) > > > > > > Louis > > > > > > > > > 2008/7/30 Mike <[EMAIL PROTECTED]> > > > > > > Hi, > > >> > > >> The trick is to use Ref(Buy, -1) to recognize a signal at the > > >> previous bar, and then to provide the BuyPrice as the Y > coordinate. > > >> > > >> I think that you will find that the star is much too large an > image > > >> for what you are trying to do. Use a small circle instead as > follows: > > >> > > >> PlotShapes(IIf(Ref(Buy, -1), shapeSmallCircle, shapeNone), > > >> colorBrightGreen, 0, BuyPrice, 0); > > >> > > >> Not sure if you need to use Ref on the BuyPrice too. Experiment > and > > >> find out. > > >> > > >> Mike > > >> > > >> > > >> --- In [email protected] <amibroker%40yahoogroups.com><amibroker% > 40yahoogroups.com>, > > >> "ozzyapeman" <zoopfree@> wrote: > > >> > > > >> > Hope someone can help with this very basic (maybe dumb) > question. I > > >> have > > >> > trade delays set to: SetTradeDelays(1,1,1,1) > > >> > > > >> > Therefore "Buy" is just the buy signal (not entry) and the > actual > > >> entry > > >> > price occurs at the next bar over, due to trade delay. > > >> > > > >> > I want to plot an up arrow at the buy signal and a star at the > > >> actual > > >> > entry. > > >> > > > >> > This works for the buy signal: > > >> > > > >> > PlotShapes(Buy * shapeUpArrow, colorOrange); > > >> > > > >> > But what do I replace "?" with, in order to plot at the entry > price: > > >> > > > >> > PlotShapes(?,*shapeStar, ColorGreen); > > >> > > > >> > I need to somehow specify "Buy signal plus one bar over" > within the > > >> > PlotShapes command, to plot at the entry. > > >> > > > >> > > >> > > >> > > > > > > > > > > >
