Forex Blog

First-hand Forex trading experience and information about foreign exchange market that will be useful to traders

Archives

VarMovAvg Indicator Moves to MT5

November 6, 2009 (Last updated on November 29, 2009) by Andriy Moraru

VarMovAvg is the 4th indicator that I’ve converted from MT4 to MT5. It was quite easy and the resulting code is now much simpler and faster than it was in MQL4. This indicator is great for trend detection and I recommend you downloading it to try in MT5 beta testing. While converting VarMovAvg I discovered multi-colored indicator type in MetaTrader 5, which allows coder to reduce the amount of indicator buffers and increase the speed of calculation. So, VarMovAvg for MT5 has 1 indicator buffer less than the same indicator in MT4 (I’ve also made the same changes to Fisher indicator, reducing the number of buffers from 3 to 1). Another new feature I used, while converting this indicator, was the “#property description” instructor that allows setting an indicator’s description, which is then visible to traders when they add the indicator to a chart.

You can get the code of MT5 version or read more info about the indicator.

If you find some bugs in this VarMovAvg MT5 indicator or want to make a suggestion regarding its functionality or what should be my next MT4->MT5 conversion, please, use the commentary form below.

6 Responses to “VarMovAvg Indicator Moves to MT5”

  1. walb

    Need some help. The VarMovAvg is not updating on my platform. What can I do?
    Regards

    Reply

    Andrei Reply:

    Do you mean MT4 or MT5?

    Reply

  2. walb

    in MT5 this indi works if alone on chart, but has udpadting problems when together with other indicators, at least on my platform.

    Reply

    Andrei Reply:

    That’s probably a bug of MT5 platform. It’s recommended that you submit it to http://www.mql5.com/en/forum. But on my platform it continued to refresh even with 2 other indicators on the same chart.

    Reply

  3. Rome

    Hi! Is it possible to convert NonLagDot indicator from MT4 to MT5?
    Thanks.

    Reply

    admin Reply:

    Where can I get this indicator?

    Reply

Leave a Reply

required
required (will not be published)
optional