--- In amibroker@yahoogroups.com, "ang_60" <ima_c...@...> wrote: > > Hi All, > > > > Somewhat of a theoretical question, but is it possible to set multiple buys > > and sells on a single bar within AFL code? > > > Hi Michael, > > Point 1: I know it is possible to get multiple buys and sells on the same bar > with the use of the CBT because I had the job done by a professional > programmer. > Of course, I would have liked to program it by myself, but the code was > beyond my programming skills.
Hi Angelo, Here is some code that will allow as many buys and sells on a single bar as you desire. But, be warned you will lose the actual date/time of the trades within AB. You can use the Log file output to verify trades are accurate. On the page: http://michaels-musings.com/amibroker-files.html In the Attachment list, the files are: firstSystem2.afl inc1minuteOptions.afl Best Regards, Michael