Hi Sidney Yes I understand. But what is the code for that. I can't seem to find the correct wording in the AFL Wizard that will do the following.
Buy on 1st bar at open Close on last bar at close Thank you Walter --- In [email protected], Sidney Kaiser <[EMAIL PROTECTED]> wrote: > > You want to exit the trade on the last bar of data so you can see the results of your buy and hold. > Sid > > Walter Lepore <[EMAIL PROTECTED]> wrote: > Hi Members > > Please bear with me. I am trying to write a simply Buy and Hold system > using only one stock (HPQ-Hewlitt Packard). I'm using End of Day data > and programming using the AFL Wizard . I've been at it for about two > hours but can't generate the results of a simple buy & Hold. > > Obviously I'm doing something wrong. There are a total of 11,561 > Daily bars in the data I downloaded from Yahoo. > > I've built several different formulas and none of them result in a > simple Buy and Hold when I backtest and run a report. > > Can someone please tell me what the code is for a simple buy and hold > please? > > I assume there will only be an "Enter Long" but NO "Exit Long" since > I'm still holding. Correct? > > Thank you very much > Walter > > > > > > > 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 >
