Questions from Beginners MQL5 MT5 MetaTrader 5 - page 168
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 "close order" event in the terminal. You should use a script or an Expert Advisor. As shown above.
Hmm. what is the event called when you press the "cross" to close an open order?
That's what you need to "assign" a sound to
Thank you very much!
I also found my mistake. The point is that the "Buy_close" condition, gives the program a task to execute the deal, and the check for the position is "Buy_opened".
The deal is closed and the "Buy_close" condition coincides, therefore an error is generated.
Made the condition as follows:
this is the action to "assign" the sound to
I can't get MA lines with an offset of -+0.30%.
There isno problem with calling the moving average from which the offset will occur. But, there is no way to get offset lines.
Basic code:
This string should be in a loop and indexed.
How do I index a string? Trying this, the error comes out
Indexing should be done like this:
This line should look like this:
Declare the array to be static, of size 1: