I would like to clarify one more thing. How to close orders on profit. Let's say I open 4 orders. Two Buy on Euric and one Buy on Chif.And also one Sell/I set in the code Profit=10;
I tried to play with this code, but I failed to understand how I could close one buy or sell order when total profit is reached.
Good afternoon everyone . What a question. I copy two signals on MT4 accounts. But when the computer is off, only one account works. When I switch the computer on and switch accounts to MT4, then the second account starts working too. With VPS all is normal. I have my own virtual server. Please advise what the problem is. I need to leave the computer on or put two MT4 terminals, but I have no idea how to do this. I understand that the account that was included in MT4 works. I wanted to add a couple of accounts, but now I do not know how to do it ....
I would like to clarify one more thing. How to close orders on profit. Let's say I open 4 orders. Two Buy on Euric and one Buy on Chif.And also one Sell/I set in the code Profit=10;
I tried to play with this code, but I failed to understand how I could close one buy or sell order when total profit is reached.
Hello all! Just started to learn how to write a simple trading robot from the examples of YouTube videos. I want to write a script to open the firstbuy order, and it must open if I have no other open orders, the script wrote this, but the order does not open, please advise where the error is!
<
void OnTick()
{
if (OP_SELL==0 && OP_BUY==0)
int ticket=OrderSend(Symbol(),OP_BUY,Lot1,Ask,Slippage,StopLoss,TakeProfit, "My order",MagicNumber,0,clrGreen);
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.
Is this before opening?
Checked it works
Checked it works
I would like to clarify one more thing. How to close orders on profit. Let's say I open 4 orders. Two Buy on Euric and one Buy on Chif.And also one Sell/I set in the code Profit=10;
I tried to play with this code, but I failed to understand how I could close one buy or sell order when total profit is reached.
TP SL objects appear on the chart after closing trades. How can I prevent them from appearing?
Please help me how to start. My broker does not respond, I cannot contact him.
Check the username, password and server name. If you copy and paste it in, there may be an extra space.
I would like to clarify one more thing. How to close orders on profit. Let's say I open 4 orders. Two Buy on Euric and one Buy on Chif.And also one Sell/I set in the code Profit=10;
I tried to play with this code, but I failed to understand how I could close one buy or sell order when total profit is reached.
Hello all! Just started to learn how to write a simple trading robot from the examples of YouTube videos. I want to write a script to open the firstbuy order, and it must open if I have no other open orders, the script wrote this, but the order does not open, please advise where the error is!
<
void OnTick()
{
if (OP_SELL==0 && OP_BUY==0)
int ticket=OrderSend(Symbol(),OP_BUY,Lot1,Ask,Slippage,StopLoss,TakeProfit, "My order",MagicNumber,0,clrGreen);
>