Compile a Network to AFL
Export a trained network as a standalone AFL formula — its weights and activations as plain formula language. The first of its kind.
By default a trained network is saved as an internal file you load and run. The Toolbox can also write a trained feed-forward network out as a standalone AFL formula — its weights and activations expressed as ordinary AmiBroker formula language. As far as we know, this is the first tool to do it, and it is not available anywhere else.
No black box in your system
Because the trained network becomes plain formula language, there is nothing hidden in your backtest. You can read exactly what the network learned, audit it line by line, run the prediction without the multi-input loader, and combine it freely with your own buy and sell rules, stops and position sizing. It is also portable text that moves cleanly between machines.
How to use it
Enable the export before training a standard MLP and the Toolbox writes the AFL version alongside the saved network. Recurrent LSTM and GRU models cannot be exported this way — they run from a saved network file — and the feature applies to standard networks rather than the walk-forward indicator.