Brokey For Amibroker [WORKING]
AmiBroker’s native ApplyStop does not handle a stock going to $0.01 and then being removed from the exchange. Brokey introduces a custom DelistedStop() function:
This single feature changes everything. Suddenly, strategies that hold positions for months are forced to take catastrophic losses, revealing their true risk.
Even with Brokey, users make mistakes. Here are the top three:
Interpretation:
Optimization (Parameters):
| Pros | Cons | |------|------| | Adapts to volatility (like TTM Wave, CCI) | Parameter-sensitive (Period, ATR, Multiplier) | | Works across asset classes (stocks, futures, crypto) | Not a standalone system — needs confluence | | Simple zero-line logic easy to backtest | Can whipsaw in choppy markets | | Fewer false breakouts than raw momentum | Requires AmiBroker AFL coding knowledge |
If you have spent any time developing trading systems in AmiBroker, you know it is one of the most powerful, flexible, and fastest backtesting platforms available. You’ve meticulously coded your entry signals, optimized your stops, and watched your equity curve climb steadily. But there is a silent, pernicious enemy lurking in your data that can turn your million-dollar strategy into a live-market disaster. brokey for amibroker
That enemy is the survivorship bias, the quote bias, and the illiquidity trap. And the weapon to slay it? Brokey for AmiBroker.
For the uninitiated, “Brokey” (officially known as Brokey’s Data Cleaner & Backtest Enhancer) is not a household name like Norgate or CSI Data. It is the underground workhorse—a specialized utility and data management philosophy designed to fix what AmiBroker’s native database often overlooks: the reality of broken, delisted, and illiquid stocks.
This article is your complete roadmap. We will explore what Brokey is, why you need it, how to install and configure it, and the advanced techniques that separate professional-grade backtests from amateur wishful thinking. AmiBroker’s native ApplyStop does not handle a stock
Step 1: Download the Latest Release
Step 2: Copy DLL to Plugins Folder
Step 3: Install AFL Scripts
Step 4: Load a Brokey Chart Template