Skip to content
Dave Mabe
Close menu

Debugging Real-Time Signals in Amibroker After Hours

By Dave Mabe

In Amibroker, sometimes you want to simulate real-time trading after hours.

Let's say you've created a strategy using the MabeKit AFL generator.

The code includes a section used for real-time trading through the Trade Client.

But your strategy might not trade very often, so you could end up twiddling your thumbs waiting for a signal for hours or even days.

And when the signal comes, you might find an error in your process.

You quickly fix it, but then you're playing the waiting game again for the next signal to arrive.

Here's a nice way to simulate a signal as if it occurred "now", no matter when "now" is.

This way, you can test the entire real-time trading workflow on demand, rather than waiting around for a real signal to be generated.

This video shows how it's done - by temporarily deleting bars from your database. (And then how to restore them.)

WATCH NOW ยป

-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.

Get instant access to the Amibroker AFL Course