Questions from Beginners MQL5 MT5 MetaTrader 5 - page 804
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
Print the result of OrderCheck and its full structure. Do the same with OrderSend.
Set up demo accounts on ten different trading servers. And try your code there. Most often some particular feature of the trading server is not taken into account, which is reproduced when checking in the Market.
And don't forget to output LastError. All this together will allow you to figure out the causes of the error very quickly.
Thanks, I'll give it a try!
Help me to understand the situation, I have an EA in the Strategy Tester, everything goes without errors and problems on a demo account, also no problems, but when I load the EA in the Market, the Autotester writes:
The problem has been studied far and wide. Read the article carefully, it's called something like "what tests the EA should pass ...".
It's all described there.
I am asking for help in solving this problem. When opening an order in the market with a volume greater than 1 on Moex, a strange phenomenon occurs: the order is traded on the market and the information about the trading comes partially, due to which OnTrade() is called earlier - how do I check if I want to wait until all information about the traded order arrives?
Question about OnTradeTransaction function, example how to catch the closing of a position.
Thanks, turns out I was doing it right and the print is wrong. Monday is wiser than Friday, or something like that)
How do I get the price of the nearest ORDER_TYPE_BUY_LIMIT from all the set ones, to ORDER_PRICE_CURRENT?
Thanks, turns out I was doing it right and the print is wrong. Monday is wiser than Friday, or something like that)
How do I know the price of the nearest ORDER_TYPE_BUY_LIMIT out of all the set ones, to ORDER_PRICE_CURRENT?
Bypass the entire list of pending orders, select pending orders by current symbol, by magik (optional), select pending orders of the required type only:
Bypass the entire list of pending orders, select pending orders by current symbol, by magik (optional), select pending orders of the required type only:
Thanks, ran to the locksmith, clicked the ad ).
I can't solve a simple problem.
In the EA, when getting the indicator handle...
....terminal draws both lines, but I only need the top line.
How to disable drawing of this line? I.e. change its colour to CLR_NONE, or line style to DRAW_DONE?
Please advise how I can subscribe to the signal from my phone? My device has no "subscribe" button on my website... I tried to open it all. In MT5 there is nothing at all about the signals (
You can't. You have to subscribe from a Windows desktop computer, and MetaTrader 5 must be installed on this computer.