Forex Blog

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

Archives

Easy Trend Visualization in MT5

December 6, 2009 by Andriy Moraru

Added an MT5 version of the Easy Trend Visualizer MetaTrader indicator to the site today. It has almost the same functionality as an MT4 version. The conversion process was rather painful with this indicator and it was the first time I really hated new MQL5 and MT5. Not only the code became more bulky after the conversion, but also the MT5 indicator display system wouldn’t allow doing the same things that MT4 allowed to do easily, in sense of the visualization. It resulted in two main disadvantages compared to old indicator version:

  • More indicator buffers to do the same things
  • The support/resistance lines have ugly vertical appendages

On the bright side, I’ve finally found out that the order of elements in the indicator buffers can be inverted (to make it the same as in MT4) by simply calling ArraySetAsSeries() function in the OnInit() event handler. That can really help in the indicator development. Despite all the bad, there are two minor advantages in the MT5 version of Easy Trend Visualizer:

  • Description displayed when adding indicator to chart
  • Readable code

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

If you find some bugs in this 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.

2 Responses to “Easy Trend Visualization in MT5”

  1. Edem Adofoli

    This a great Trading platform which uses Excel application, great flexibility when trading FX from Excel – in excel you can do anything.

    Reply

    Andrei Reply:

    What are you talking about?

    Reply

Leave a Reply

required
required (will not be published)
optional