- See Typecasting - Data Types - Language Basics - MQL4 Reference
- A datetime is an ulong; seconds since 1970. It makes no sense to multiply by anything.
- See Typecasting - Data Types - Language Basics - MQL4 Reference
- A datetime is an ulong; seconds since 1970. It makes no sense to multiply by anything.
A datetime is 8 bytes, that doesn't mean it's an ulong. It's not.
A datetime is 8 bytes, that doesn't mean it's an ulong. It's not.
- See Typecasting - Data Types - Language Basics - MQL4 Reference
- A datetime is an ulong; seconds since 1970. It makes no sense to multiply by anything.
You don't. You determine the slope of a line between two coordinates: p1,t1 and p2, t2. m = (p1-p2) ÷ (t1-t2)
You don't. You determine the slope of a line between two coordinates: p1,t1 and p2, t2. m = (p1-p2) ÷ (t1-t2)
I did it, as you said, but it returns value that is not equal by something that is seen visually.(see the attachment)
this is part of code:
double m=(p2-p1)/(t2-t1);
double teta_up=(180/M_PI)*MathArctan(m);
and this is output:
p1 = 1.18997
p2 = 1.19087
t1 = 2021.08.04 16:00:00
t2 = 2021.07.30 12:00:00
teta_up = -1.155156845021979e-07
Ps. teta_up on Image is related to red one on the chart.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use