My way of understanding this is that internally, the AB engine runs CBT code after the rest of the script code has been run, *regardless* of where it is placed within the script.
--- In [email protected], "chuck_win" <ch...@...> wrote: > > "The custom backtest code is run *after* the rest of the script code has been > run for all symbols". see > http://finance.groups.yahoo.com/group/amibroker/message/133360 > > > --- In [email protected], "chuck_win" <chaoy@> wrote: > > > > I am confused with the place of CBT in code. > > Some sample code write the CBT before other code. others do oppositely. > > > > I don't know which one is correct. Maybe the place of CBT in code doesn't > > matter. > > > > Thanks. > > > > Charles > > >
