Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Advanced Line Chart - indicateur pour MetaTrader 5

Vues:
7757
Note:
(13)
Publié:
2023.02.04 05:19
Mise à jour:
2023.03.03 15:05
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

Advanced Line Chart

This line tries to reflect the main direction of the trend and it is calculated based on Japanese candlestick data.

If the trend is up, then the line is closer to the high prices of each candle, and vice versa, if the trend is down, then the line is closer to the low prices of each candle.

This is great for plotting various moving averages and can be a good basis for calculating other indicators.

    Highest High fetch Highest High fetch

    The code defines a function "RangeHighs" that calculates the highest price of a financial instrument within a specified time range (start and end time). The time range is defined by 4 input parameters (hour and minute of start and end time). The highest price is found using the "CopyHigh" function and stored in an array, from which the maximum value is returned.

    MultiCurrency Template MT5 MultiCurrency Template MT5

    a Template for Multicurrency system for Metatrader 5

    CLS (ClearScreen) CLS (ClearScreen)

    CLS (ClearScreen) delets all object drawn on the chart with key press "C"

    Check the time periods used Check the time periods used

    The function takes two arrays of integers as parameters: "allowedPeriods" and "periodsToCheck". "allowedPeriods" is an array containing all the time periods allowed by the system, while "periodsToCheck" is an array containing the time periods used by the user in the indicator. The function iterates through the elements of the "periodsToCheck" array and checks if each of them is present in the "allowedPeriods" array. If it finds any time period that is not allowed, the function returns "false". If all time periods are allowed, the function returns "true". In short, this function is used to make sure that the time periods used in an indicator are valid and allowed by the system.