I've followed the instructions in that article and my trailARRAY doesn't appear on the chart. Should it appear as soon as I select a trade result from the backtest? No matter how I select the trade result (right-click, show current trade arrows, etc) I can't get the Plot function to do anything.
Any ideas? --- In [email protected], Thomas Ludwig <[EMAIL PROTECTED]> wrote: > > This KB article by TJ might help you: > http://www.amibroker.com/kb/2007/03/24/how-to-plot-a-trailing-stop-in-the-price-chart/ > > Regards, > > Thomas > > > I can't get the Plot function to plot the stop level at each point > > during the duration of the trade. I'm using this which is at the end > > of my backtest AFL file. trailARRAY is an array with the current > > stop level at each point, null otherwise. > > > > Nothing appears on the chart. Any ideas? > > > > Plot( trailARRAY, "trailing stop level", colorRed ); > > > > --- In [email protected], "Tomasz Janeczko" <groups@> > wrote: > > > Sure, use PlotShapes function. > > > http://www.amibroker.com/f?plotshapes > > > > > > Best regards, > > > Tomasz Janeczko > > > amibroker.com > > > ----- Original Message ----- > > > From: "davemabe2000" <davemabe@> > > > To: <[email protected]> > > > Sent: Wednesday, March 05, 2008 11:02 PM > > > Subject: [amibroker] How to Plot Trailing Stop from Analysis Window > > > > > > > I'd like to plot the custom trailing stop that I'm using in one > > > > of my AFL scripts. I can create an array that contains the > > > > current trailing stop, but I'm not sure how to plot it. > > > > > > > > I'd like to have it show up when I right-click on a trade in the > > > > analysis results window and select "Show Current Trade Arrows". > > > > > > > > Also, when I do that the arrows appear as I'd expect, but then > > > > when I new bar appears (during market hours) the trade arrows > > > > disappear until I right-click and select "Show Current Trade > > > > Arrows" again. Any way to get them to stay? > > > > > > > > Thanks! > > > > > > > > > > > > > > > > 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 > > > > > > >
