Hi there, I did not figure out how to pass a value from my system.afl to my custom_backtesting.afl
Now I can call custom_backtesting.afl using SetCustomBacktestProc from any system.afl. But I want to be able to pass different values to my custom_backtesting.afl from different systems.afl without changing custom_backtesting.afl code. I really do not know how to do it. Any ideas? Thank you, Radek On Fri, Mar 20, 2009 at 7:00 PM, Mike <[email protected]> wrote: > 1. Have a look at custom metrics. > http://www.amibroker.com/guide/a_custommetrics.html > > 2. You can refer to any defined variable from within your custom backtest > code. Those variables can be defined in any .afl file and #include into the > current .afl > http://www.amibroker.com/guide/afl/afl_view.php?id=1 > > 3. Divide your logic into modular files and #include as needed. e.g. > buysell.afl, backtest.afl (#include's buysell.afl), explore.afl (#include's > buysell.afl). > > Mike > > --- In [email protected], Radek Simcik <radek.sim...@...> wrote: >> >> hi all, >> >> could anybody give me a hint how I can add >> - position score >> - results per ticker not per trade >> - trigger date >> >> to my backtesting result window? >> >> Also is there any way how I can pass parameter to my customized >> backtester afl from my system afl? In case I want to have two separate >> afl files? >> >> I want to have one special condition in my exploration but not in my >> backtest/optimization. Is there any way I do not have to take care of >> it manually? >> >> Thank you, >> >> Radek >> > >
