Amibroker AFL Editor Trick: Clickable Links
By Dave Mabe
Here's another AFL editor trick in addition to yesterday's on Bookmarks.
In the AFL editor, you can add links in your code comments.
By default, they're not clickable, which is not very useful.
Here's how you can make them clickable.
Normally, a comment is specified by using two forward slashes:
// this is a comment
Here's a link in a comment that is NOT clickable:
// this is a non-clickable link: https://davemabe.com
But if you make it three forward slashes and use the @link string just before the link, the @link string becomes clickable:
/// this is a clickable link: @link https://davemabe.com
This becomes especially useful when implementing rules for improving your strategy with the Cruncher.
Imagine months from now, returning to your strategy and trying to remember why you added a certain rule.
Having a clickable link right to the report in the Cruncher you used to make that decision is incredibly useful.
Here's a YouTube video I just posted on my channel to show this in action with a link to a Cruncher report I shared on SMB Capital's Bionic Trader webinar a few weeks ago:
-Dave
P.S. Amibroker users: are you trying to use ChatGPT to create a backtest only to discover how bad the LLMs are at coding Amibroker's language? You're not alone! You need my Amibroker AFL Course. It comes with a demo strategy that serves as the perfect starting point for any strategy you want to create.