Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.03.07 10:22

UpDown - indicator for MetaTrader 4

| English Español Português Deutsch Русский 日本語

votes: 15
updown.mq4 (8.91 KB)view


The indicator calculates either the distance of the current price from the opening price, or the distance between the High and Low price, whichever is selected.

The calculation is performed for all pairs available (not hidden) in the "Market Watch" window, then the values are sorted descending/ascending and they are output to the buttons.

Clicking the button opens a chart of the corresponding symbol in a separate window.

Amendments of 2015.06: fixed the error of shifting the button coordinates when switching timeframes.






  • Method — selection of the calculation method (opening-closing or high-low).
  • Number of buttons — the number of currency buttons displayed.
  • Pressing the MODE button changes the sorting mode to "ascending/descending".
  • To exclude a pair from the calculation it should be removed from the "Market Watch" window.


  1. Response to pressing the MODE button happens with a delay (the code is heavy).
  2. The maximum number of pairs to calculate — 50 (in code #define LINES 50).

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

LinesProfitLoss LinesProfitLoss

Calculates profit (loss) of the current orders on the symbol.

FFC - Forex Factory Calendar FFC - Forex Factory Calendar

Modified version of FF Calendar Indicator with new features.