Forum

Troubles with division

Hi! I Have a double number (1.0) and I try to divide by a double variable that is the rest of another two variables. Any one of this variables is a the number of a senkou Span A and Senkou Span B indicator ( From Ichimoku). When I show the numbers using comment, all goes well. But when I try to

Datetime to Int

Hi, I need to convert the value of Time[] from datetime to an int variable. Exist a quick way to transform an datetime variable into a int variable in Metatrader 4? If is not possible, at least into double could serve either? Very Thanks for your Help!! :)