Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

MetaTrader 5 indicator that measures the largest distance between a price (high or low) and a moving average.

License

Notifications You must be signed in to change notification settings

leonardosposina/mt5-distance-from-moving-average

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MetaTrader 5 > Indicator > Distance from Moving Average

Distance from Moving Average

Description

This indicator measures the largest distance between a price (high or low) and a moving average. It may come in handy for strategies that open reverse positions as price moves away from a moving average within a certain range, awaiting it to return so the position can be closed.

It just works on any symbol and timeframe.

Settings

Inputs

Inputs

  • Moving average period: Period for moving average calculation.
  • Moving average method: You can choose between "Simple", "Exponential", "Smoothed" and "Linear-weighted" moving average methods.
  • Average distance calculation period: This is the calculation period for the average distance, and the options are "today", "today + yesterday", "today + past 2 days", "today + past 3 days", "today + past 4 days", "today + past 5 days" and "today + past 6 days".

Colors

Colors

  • Histogram color, width and style.

Levels

Levels

  • Level lines color, style and thickness.

Instructions

  1. Copy this project folder to your MetaEditor indicator folder.
  2. Select the .mq5 file and click 'Compile' button on MetaEditor.
  3. On MetaTrader, insert this compiled indicator into the chart you want.

References

MQL5 Market

About

MetaTrader 5 indicator that measures the largest distance between a price (high or low) and a moving average.

Topics

Resources

License

Stars

Watchers

Forks

Languages