AmiBroker Tips and Tricks | Aussie Stock Forums

I was looking at the Custom Backtest (CBT) interface again this week and learnt something which I thought would be good to share.

As usual there is more than one way to do something and here I have discovered 3 ways to do the same thing….wow what is this magic I hear you ask

When you have some CBT code you want to run you can do it via one of the below options;

Option 1 – on the Analysis settings — Portfolio tab select you CBT .afl code to load

View attachment 104344

Option 2 – Insert your CBT code within your main .afl system code

View attachment 104345

Option 3 – have a single line of code in your main .afl system code which loads your CBT .afl code


So there you go, another interesting tip for you to digest or even better share one of your own.

Be the first to comment

Leave a Reply

Your email address will not be published.