Questions from Beginners MQL5 MT5 MetaTrader 5 - page 931
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
Good afternoon!
Do you know how to build an indicator for Market?
I have a file with .mq5 extension and some include files with .mqh extension.
As far as I understand, you can't attach .mqh to the .mqh file via resources, should I really convert everything to one file manually?
What if there is a new version :? It's crazy +)))
Thanks.
You send the compiled (.ex5) file to the Market. This file will already contain all your include files.
A counter question: "Why do you need to explicitly assign a symbol here?
If you use this function, you must assign a symbol to m_symbol in OnInit:
In this case, if you run EA on "EURUSD.m" symbol, "EURUSD.m" will automatically be set for m_symbol.
The thing is that Expert Advisor is hovering on a different symbol. And I need to update quotes for EURUSD.m
I found this solution but I think it is wrong
That's the thing, the EA is hovering on a different symbol. And I need to update quotes for EURUSD.m
I found this solution but I don't think it's right
Folks, please advise!!!
How can the TimeCurrent() function pass the values of hours and minutes to the variables so that they can work with these values?
Or for example I want to pass hours and minutes with string (12:15) and pass 12 and 15 to the variables. How to do this?Folks, please advise!!!
How can the TimeCurrent() function pass the values of hours and minutes to the variables so that you can work with these values?
Or for example I want to pass the hour and minutes with string (12:15) and pass 12 and 15 to the variables. How to do this?TimeToStruct
TimeToStruct
Hi! I converted the indicator from metatrader 4 to metatrader 5, but now it shows arrows in the wrong places as in metatrader 4 on a minute period. Did I make a mistake somewhere or is it because of the different quotes on the minute chart of the 4 and 5 versions of the terminal of one broker?
Do a simple test in MQL5 and MQL4 indicator - print bar time #0:
This will help to understand what's what...
Do a simple test in MQL5 and MQL4 indicator - print bar time #0:
This will help to understand what's what...
Added this text to OnCalculate, bar time changes every minute now, but now there are no arrows at all. What could be the error?
Added this text to OnCalculate, bar time changes every minute now, but now no arrows at all. What could be the error?
You didn't get it right. Compare the printed values. Compare bar time #0 and bar time #rates_total-1. Compare both there and there...