Loading…

Forex Distance

From the Old Kings archive: Forex Distance, an indicator for MetaTrader 4. In the code it works with moving averages. It can send alerts and can read another timeframe. It has 11 settings, for example Time Frame (default current time frame), Half Length (default 35) and Price (default PRICE_CLOSE). Attach it to a chart to see what it draws, then compare it with price on a few timeframes. Inside: 1 indicator file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Indicator · MT4 · v1.0 · Free

About Forex Distance

Forex Distance is an indicator for MetaTrader 4 based on Moving Average. It can alert you with a pop-up, sound, email or push message and can show data from another timeframe (MTF). It has 11 settings, such as Time frame, Half length and Price. MQL source code included.

Files in the download: Forex Distance.mq4.

Settings

SettingDefaultWhat it does
Time framecurrent time framePeriod or timeframe used by the calculation
Half length35
PricePRICE_CLOSE
Envelope shift0Bar shift (0 = current bar)
Deviation0.35
Alerts onfalseTurn this alert on or off
Alerts on currentfalseTurn this alert on or off
Alerts messagefalseTurn this alert on or off
Alerts soundfalseTurn this alert on or off
Alerts emailfalseTurn this alert on or off
Soundfilenews.wavTurn this alert on or off

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
  3. Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
  4. Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: Alerts · Multi-Timeframe (MTF) · Moving Average · MT4 Indicator · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria