Forex Forums | ForexLasers.com


Go Back   Forex Lasers Forum > METATRADER FORUM > FX Indicators Download Database
Home Forex Education Economic Calendar Register Search


Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4

FX Indicators Download Database


Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old 20-03-2018, 21:26
Junior Member
 
Join Date: Sep 2017
Posts: 0
Default Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4

IDWMA_2.png

This multi-timeframe capable moving average discounts prices far from the average. It is smoother than SMA but follows price similar to an EMA of the same length.

I came across en.wikipedia.org/wiki/Distance-weighted_estimator, thought it might be useful and coded it.

It does have some overshoot and initial lag just like SMA, but converges to nearer to price than the corresponding EMA. The initial lag may be useful in a trailing stop and when the market has reversed direction.

There are four (4) parameters, the first three are the same as the standard moving average

extern int MA_Period = 14; // Default Moving Average
extern int MA_Shift = 0; // Default Moving Average
extern int MA_Price = 0; // PRICE_CLOSE=0, Open=1, High=2, Low=3, median=4, typical=5, weighter=6
extern int MA_TF = 0; // Chart=0, PERIOD_H1...

How to install Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4.mq4?


    Download Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4.mq4
    Copy Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4.mq4 to your Metatrader Directory / experts / indicators /
    Start or restart your Metatrader 4 Client
    Select Chart and Timeframe where you want to test your MT4 indicators
    Search "Custom Indicators" in your Navigator mostly left in your Metatrader 4 Client
    Right click on Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4.mq4
    Attach to a chart
    Modify settings or press ok
    Indicator Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4.mq4 is available on your Chart

How to remove Inverse Distance Weighted Moving Average (IDWma) – indicator for MetaTrader 4.mq4 from your Metatrader Chart?


    Select the Chart where is the Indicator running in your Metatrader 4 Client
    Right click into the Chart
    "Indicators list"
    Select the Indicator and delete

Click here below to download:

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ichimoku Moving Average – indicator for MetaTrader 4 Metatrader Indicators FX Indicators Download Database 0 20-03-2018 21:26
Fibo Moving Average – indicator for MetaTrader 4 Metatrader Indicators FX Indicators Download Database 0 01-03-2018 13:59
FRASMA: Fractally Modified Simple Moving Average – indicator for MetaTrader 4 Metatrader Indicators FX Indicators Download Database 0 01-03-2018 13:59
Multi Moving Average – indicator for MetaTrader 4 Metatrader Indicators FX Indicators Download Database 0 27-12-2017 10:56
Multi Moving Average v2 – indicator for MetaTrader 4 Metatrader Indicators FX Indicators Download Database 0 27-12-2017 10:56


All times are GMT. The time now is 02:08.


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2026, vBulletin Solutions, Inc.