Trend Intensity Index, conversion from MT5 indicator code

Forums ProRealTime English forum ProBuilder support Trend Intensity Index, conversion from MT5 indicator code

Viewing 2 posts - 1 through 2 (of 2 total)
  • #103523

    Hi,

    Can I check if anybody can convert from MetaTrader to Pro Real Time for Trend Intensity Index – https://www.mql5.com/en/code/20713

    Trend Intensity Index as described by M.H.Pee in his article “Trend Intensity Index”.

    To calculate a 30-day Trend Intensity Index (TII), follow these steps:

    1. Obtain the 60-day simple Moving Average by adding the Closes for the past 60 days and dividing the result by 60.
    2. Find the deviation of each of the recent 30 Closes from the 60-day Moving Average. The deviation is up if the Close is above the Moving Average, and down when the Close is below the average.
      • Up deviation values are obtained by subtracting the Moving Average from the Close.
      • Down deviations are calculated by subtracting the Close from the Moving Average.
    3. The TII allows you to find out what percentage of these deviations is up or down. For a 30-day TII, you should have 30 deviations from the 60-day Moving Average.
    #103528

    Hi, please next time respect some rules to ask for a code conversion: Ask for a free code conversion

    I modified your post to reflect the rules (picture, title and description of indicator).

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login