Questions from Beginners MQL4 MT4 MetaTrader 4 - page 235
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
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);
>