Forex Blog

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


Traders Dynamic Index (TDI) Converted to MT5 and cTrader

November 26, 2015 (Last updated on December 18, 2015) by

As a way to celebrate Thanksgiving, I have finally found some time to convert one of the most popular MT4 indicators to the two less popular platforms: MetaTrader 5 and cTrader. You will also find a more detailed and precise description of the indicator on Meanwhile, I have also updated the MT4 version for better compatibility with Build 600 changes and fixed some minor bugs within it.

MetaTrader 5

MT5 version is not very different from the MT4 one except for that it works with indicator buffers in a more natural way, but has to use a slow custom iMAOnArray() function to do rather basic calculation of RSI averages.

TDI - MT5 Version


cTrader version’s source code looks very different compared to its MetaTrader counterparts. It was very easy to program and the resulting code can be understood by a complete newbie. Unfortunately, it does not support alerts as there are no platform-specific alerts in cTrader that can be used in custom indicators or robots.

TDI - cTrader Version

If you find any bugs or if you have any suggestions regarding this Forex technical indicator, please feel free to post in the commentary section below. If you have Traders Dynamic Index coded for some other trading platform, you can share it here too.

8 Responses to “Traders Dynamic Index (TDI) Converted to MT5 and cTrader”

  1. Shola

    The alert is not working in the MT5 version. it will be nice to be alerted when the shark fin is formed. Can you take a look and have it give alerts?


    Andriy Moraru Reply:

    Thank you very much for reporting this bug! You can now download a fixed version. I have also improved the alerts system a bit.


  2. Ikechukwu Iloanya

    TDI not appearing on mt5 platform for


    Andriy Moraru Reply:

    Which version of the TDI indicator are you using?
    Which MT5 Build are you using?
    What trading symbol and timeframe are you trying to attach it to?
    What happens when you try attaching TDI to a chart?
    What is the output in the Experts tab when you try that?


  3. Daniel

    Hi Sir
    Can I ask you to convert the c# code to cAlgo, because I can’t install it like that only .algo and I don’t know how to code it, indeed I can’t find the cAlgo software to put the code.

    THis is for ctrader version.

    Thank you so much


    Andriy Moraru Reply:

    The easiest way would be to open the Indicators tab in the Automate part of cTrader and create a new indicator there – then paste the contents of the .cs file there. After that, click Build and it’s done.


  4. Mohamed Nor Ali

    Hi I dont See TDI In my MT


    Andriy Moraru Reply:

    Have you downloaded, installed, and compiled it?


Leave a Reply

required (will not be published)