Download MetaTrader 5
To add comments, please log in or register
Improve your rating. Execute orders in Freelance service!
intrania13
20
intrania13 2016.09.10 18:10 

Dear Coder,

I need your help to explain me how to use the function of Time[] in MT5 which is exit in MT4 but not in MT5. How can I fix it in MT5?

Vladimir Karputov
Moderator
38181
Vladimir Karputov 2016.09.10 18:24  
intrania13:

Dear Coder,

I need your help to explain me how to use the function of Time[] in MT5 which is exit in MT4 but not in MT5. How can I fix it in MT5?

In the indicator or in the adviser?
Stanislav Korotky
16862
Stanislav Korotky 2016.09.10 18:41  
intrania13:

Dear Coder,

I need your help to explain me how to use the function of Time[] in MT5 which is exit in MT4 but not in MT5. How can I fix it in MT5?

Use CopyTime. Here is an article with details about migrating from MQL4 to MQL5.
Bernhard Schweigert
4028
Bernhard Schweigert 2016.09.11 13:24  
Stanislav Korotky:
Use CopyTime. Here is an article with details about migrating from MQL4 to MQL5.

"In MQL5 chart period constants changed, and some new time periods (M2, M3, M4, M6, M10, M12, H2, H3, H6, H8, H12) were added."

Thanks this article really helps

Bernhard Schweigert
4028
Bernhard Schweigert 2016.09.11 13:27  

check this one too

https://www.mql5.com/en/articles/66

Transferring Indicators from MQL4 to MQL5
Transferring Indicators from MQL4 to MQL5
  • 2010.07.28
  • Vasily
  • www.mql5.com
This article is dedicated to peculiarities of transferring price constructions written in MQL4 to MQL5. To make the process of transferring indicator calculations from MQL4 to MQL5 easier, the mql4_2_mql5.mqh library of functions is suggested. Its usage is described on the basis of transferring of the MACD, Stochastic and RSI indicators.
/
To add comments, please log in or register