Loading…

Forex Ma Distance From Price Indicator

This Old Kings indicator for MetaTrader 4 is called Forex Ma Distance From Price Indicator. As the name suggests, the idea behind it is moving averages. In the code it works with moving averages. It draws arrows on the chart. It has 5 settings, for example Ma Period (default 9), Ma Shift (default 0) and Ma Method 0to3 (default 3). Try it on a demo chart first and note how its lines or arrows react to new bars. 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 Ma Distance From Price Indicator

Forex Ma Distance From Price Indicator is an indicator for MetaTrader 4 based on Moving Average. It draws buy and sell arrows on the chart. It has 5 settings, such as Ma period, Ma shift and Ma method 0to3. MQL source code included.

Files in the download: installation manual.txt, Ma_Distance_From_Price.mq4.

Settings

SettingDefaultWhat it does
Ma period9default = 9,0,3,0,15 on H1 charts
Ma shift0Bar shift (0 = current bar)
Ma method 0to330 = SMA, 1 = EMA, 2 = SMMA, 3 = LWMA
Applied price 0to600 = Close, 1 = Open, 2 = High, 3 = Low, 4 = Median, 5 = Typical, 6 = Weighted Close
Pip buffer15If Ma > Price+PipBuffer then arrow , If Ma < Price-PipBuffer then arrow

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: Moving Average · Buy/Sell Arrows · MT4 Indicator · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria