Contribute an indicator to the library by clicking here. Note you must be logged in.

New! Stock Portfolio Organizer is now available:
  • Shares, Margin, Futures and Forex
  • EOD and Realtime data
  • And Much More...
GoTo Stock Portfolio Organizer
New! WiseTrader Toolbox for Amibroker is now available with:
  • Advanced Adaptive Indicators
  • Advanced Pattern Exploration
  • Neural Networks
  • And Much More...
GoTo WiseTrader Toolbox

Popular Indicators

Q Indicator for Amibroker (AFL)

3 / 5 (Votes 4)


In “Trend-Quality Indicator” in this issue, David Sepiashvili presents an innovative trend-detection tool — the trend-quality indicator — that attempts to estimate the trend in relation to noise.

Calculations presented in the article can be easily reproduced using AmiBroker Formula Language. The only tricky part is a piecewise exponential moving average that restarts the calculations on every moving average crossover, but we managed to implement it in two lines of code, thanks to AmiBroker’s powerful Ama2 function, which allows easy implementation of all kinds of single-order infinite impulse response filters.

Listing 1 shows ready-to-use indicator code to plot the Q-indicfator. In AmiBroker, select Indicator Builder from the Analysis menu, click the “Add” button, enter the formula, and then press “Apply.” Figure 3 shows a sample chart. reproduces the chart presented in Sepiashvili’s article.

—Tomasz Janeczko,

Similar Formulas



Please login here to leave a comment.

Main Menu