Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
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
Bibliothèque

Convert time to double and vice versa - bibliothèque pour MetaTrader 4

Vues:
6334
Note:
(26)
Publié:
2015.05.28 11:09
Mise à jour:
2016.11.22 07:32
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

I've found these small functions very useful when trying to pass datetime through Global Variables.

Example:

You can use it to save a value

GlobalVariableSet(name,TimeToDouble(date_time));

and

datetime date_time=DoubleToTime(GlobalVariableGet(name));

when you want to get the value back.

Pivot Point with adjustable closing time Pivot Point with adjustable closing time

Pivot Point (PP) indicator for use on timeframes < D1 with adjustable preceding day close time, elimination of sunday bars, optional display of weekly and monthly PP, preview of tomorrows' PP and current days' midpoints.

ToolBox ToolBox

Gives you information on pip value, spread value, daily pips average, how much you can earn, future range of the present day.

Linear Momentum Linear Momentum

Simple implementation of physical calculation of Momentum.

PairsIndex PairsIndex

PairsIndex indicator shows the price index of 7 currencies dealing with 7 currency pairs.