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.
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 ...".
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?
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:
intOnInit()
{
//--- Получить хэндл индикатора Envelopes_upper для отрисовки верхней линии
EnvHandle_upper=iEnvelopes(NULL,0,Period_upper,0,MODE_SMA,PRICE_MEDIAN,Deviation_upper);
....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?
Can you tell me how to subscribe to the signal from your phone? There is no "subscribe" button on the website, I've looked through it all... And in mt5 there is nothing at all about the signals (
VSPro: 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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.