Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

Convert time to double and vice versa - library for MetaTrader 4

Views:
6279
Rating:
(26)
Published:
2015.05.28 11:09
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to 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.