Hi Ed, Thanks for posting the original code and also for providing a link to Dimitris' original message. Working through the code, along with Terry's help has solidified my understanding of aspects of the AFL language that I was not sure of.
Nick On Wed, 10 Jan 2007, Edward Pottasch wrote: > hi, > > In addition to Terry this is a link to Dimitris his original message: > > http://www.purebytes.com/archives/amibroker/2003/msg15436.html > > I agree that the last value of x determines the buy array. However the > plotshapes inside the graph will be plotted at all values for x. > > So if you want to use all the buy values in the loop you can simply > add some code like (see below). Now the Buy and Sell arrays will > contain all the signals. > > rgds, Ed