Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1254

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
TimeCurrent()https://www.mql5.com/ru/docs/dateandtime/timecurrent
use the second version of this function's signature:
ZS: I will write at once - it works in MT4, I used it ;)
UPD: in MT4 I also used Hour() and Minute() - I don't use them for a long time, but they should give the last server time in hours and minutes
Can you advise or guide on how to make a template function with more than 10 input parameters of any type ?
Please advise or guide how to make a template function with more than 10 input parameters of any type ?
2020.09.13 08:33:57.508 tst (EURUSD,H1) v1 = 1
2020.09.13 08:33:57.508 tst (EURUSD,H1) v2 = 1.01
2020.09.13 08:33:57.508 tst (EURUSD,H1) v3 = qwerty
2020.09.13 08:33:57.508 tst (EURUSD,H1) v4 = 3.1415
2020.09.13 08:33:57.508 tst (EURUSD,H1) v5 = 777
2020.09.13 08:33:57.508 tst (EURUSD,H1) v6 = 1
2020.09.13 08:33:57.508 tst (EURUSD,H1) v7 = 1.01
2020.09.13 08:33:57.508 tst (EURUSD,H1) v8 = qwerty
2020.09.13 08:33:57.508 tst (EURUSD,H1) v9 = 3.1415
2020.09.13 08:33:57.508 tst (EURUSD,H1) v10 = 777
2020.09.13 08:33:57.508 tst (EURUSD,H1) v11 = Value_11
How to understand the following line, if(OrderSymbol()==Symbol()&& OrderMagicNumber()==MAGICMA
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGICMA)
cool
how to understand
If the order symbol (EURUSD) is equal to the chart symbol and the order magik (12345) is equal to the EA magik, then.....
If the order symbol (EURUSD) is equal to the chart symbol and the order magik (12345) is equal to the EA magik, then.....
thanks!!!
How to understand the following line, if(OrderSymbol()==Symbol()&& OrderMagicNumber()==MAGICMA
if(OrderSymbol()==Symbol() && OrderMagicNumber()==MAGICMA)
SHAITANA_MA.
Sometimes people write such funny variables :)
how do you know if the chart has moved? - Maybe the price has gone down. put a stop - really one point, it won't work.