Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1042
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
There is no MQL5 function that would give out mouse coordinates. But you can use the following solution: based on attached file - add saving of last mouse coordinates to OnChartEvent and then, when clicked, output these coordinates.
Got it, thanks
There's also some confusing problem with the ebjects.
There is a class that creates a label and a rectangle based on input parameters.
There is a state - on/off by colour of rectangle.
Then I create these objects, make an event on pressing a key, which would toggle the state.
The first couple of times it works - and then it just ignores the keystrokes, what am I doing wrong?
Here I've seen that it works every once in a while, how do I make it work clearly for each click of the toggle?
There is no MQL5 function that would give out mouse coordinates. But you can use the following solution: based on the attached file, add to OnChartEvent saving the last coordinates of the mouse and then, when you click the button, output these coordinates.
And so
Dear Sirs, what is this and where to look for the error?
Can it be related toTesterStop()? Although no, the error is after the pass...Hello.
Can you please advise whether it is possible to write an MQL5 indicator with notifications to Telegram (bot) without using any third-party services, but only MQL5+Telegram API?
Or I need to write an Expert Advisor for that? I ask this question, I tried to write such an EA for MT4, and it turned out somehow only with an Expert Advisor.
And the second question.
How difficult is it to write an indicator/advisor that will signal a certain pattern I need?
For example, two bearish candlesticks followed by three bullish ones?
I understand it like this (roughly):
Closing price < opening price = bearish candle
Close price>opening price = a bullish candlestick
If I can't do it myself, I'll probably order it for money))
Thank you for your attention!
Is it possible to compile code intoex from a third-party program?
I'm creating some sort of robot constructor in Java, and I'd like the user to get the compiled code instead of accessing the source code.
Is it possible to compile code intoex from a third-party program?
I'm creating some sort of robot constructor in Java, and I'd like the user to get the compiled code instead of accessing the source code.
Does anyone know? I'm working on transferring data from Excel spreadsheets to MQL5 scripts. Everything seems fine, but EXcel has decimal data with a comma instead of a dot.
Question: Is there a mechanism in MQL for script to take data from Excel and change it to decimal point, or better to change it to decimal point in Excel itself?
How to get data from Excel from the cells I need, because I need to line them up in a column, write macros, etc.? Among the data are both dates and integer and decimal. This Excel is so inconvenient, or I'm just not used to it yet...
I would be glad of any advice...
Does anyone know? I'm working on transferring data from Excel spreadsheets to MQL5 scripts. Everything seems fine, but EXcel has decimal data with a comma instead of a dot.
Question: Is there a mechanism in MQL for script to take data from Excel and change it to decimal point, or better to change it to decimal point in Excel itself?
How to get data from Excel from the cells I need, because I need to line them up in a column, write macros, etc.? Among the data are both dates and integer and decimal. This Excel is so inconvenient, or I'm just not used to it yet...
I would be glad of any advice...
MQL has a character replacement function in a string. Read as string
and convert it to double type