Trend Intensity Index, conversion from MT5 indicator code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #103523 quote
    jonah88
    Participant
    New

    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.
    trend-intensity-index.png trend-intensity-index.png
    #103528 quote
    Nicolas
    Keymaster
    Master

    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).

    jonah88 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Trend Intensity Index, conversion from MT5 indicator code


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
jonah88 @jonah88 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
6 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/26/2019
Status: Active
Attachments: 1 files
Logo Logo
Loading...