Brokey For Amibroker ((install))

1. Overview

Brokey (also referred to as "The Brokey Indicator" or "Brokey System") is a community-developed, volatility-adjusted momentum indicator for AmiBroker. It is not a native built-in AFL (AmiBroker Formula Language) function but rather a scripted indicator designed to identify trend strength, breakout points, and potential reversals.

Unlike standard momentum oscillators (RSI, Stochastics), Brokey incorporates volatility normalization — typically using Average True Range (ATR) — to adapt to changing market conditions. brokey for amibroker


8. Optimization Tips for AmiBroker

  • Use Param() statements to optimize Period and ATRPeriod with AmiBroker’s built-in Optimizer.
  • Combine with volatility filters — e.g., only trade when ATR(20) > ATR(50) to capture volatile regimes.
  • Add time filters — avoid Brokey signals in the first 30 minutes of market open (for intraday).
  • Use with Composite (Foreign) symbols — apply Brokey on a higher timeframe index to filter signals on individual stocks.

Pitfall 2: Ignoring Trading Halts

Symptom: The backtest sells instantly at the delist price. In reality, when a stock is broken, it often halts trading. You cannot sell. Fix: Modify your Brokey CBI to impose a random slippage of 50-100% on delisted trades. Or, treat the position as zero – you lose all capital and cannot exit. Use Param() statements to optimize Period and ATRPeriod

Part 5: Advanced Brokey Strategies – Beyond Simple Delisting

Once you have the basic Brokey setup, you can move to pro-level techniques. when a stock is broken

How to Detect "Brokey" Data in Amibroker

You don’t need to buy expensive plugins to find this. Amibroker is powerful enough to catch these errors natively.

Share This

Business Development