![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
search a simple ea/script that only buy/sell
hi
I need a script (or ea if have trailing stop support) that simply
buy or sell with SL/TP already set.
More good is if the script have a symbol detection and can
set different sl/tp for more cross.
thanks
Do you mean from an existing indicator?
An EA that buys and sells from an existing indicator?
hi
I need a script (or ea if have trailing stop support) that simply
buy or sell with SL/TP already set.
More good is if the script have a symbol detection and can
set different sl/tp for more cross.
thanksSome scripts to open the orders were posted here https://www.mql5.com/en/forum/177914/page3
Two useful scripts for manual traders
They send orders very sure!
They send orders very sure!
is it working bro?
quite good closing all function
int slippage=5;
void CloseAllOrders()
{
int Retry;
while (OrdersTotal()>0)
{ for (int cnt=OrdersTotal()-1;cnt>=0;cnt--)
{ OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if (OrderType()==OP_BUY)
{ Retry=0; while (Retry<5 && !IsTradeAllowed()) { Retry++; Sleep(1000); }
RefreshRates();
OrderClose(OrderTicket(),OrderLots(),Bid,slippage, Yellow);
Sleep(1000);
}
else if (OrderType()==OP_SELL)
{ Retry=0; while (Retry<5 && !IsTradeAllowed()) { Retry++; Sleep(1000); }
RefreshRates();
OrderClose(OrderTicket(),OrderLots(),Ask,slippage, Yellow);
Sleep(1000);
}
else
{ Retry=0; while (Retry<5 && !IsTradeAllowed()) { Retry++; Sleep(1000); }
OrderDelete(OrderTicket());
Sleep(1000);
}
}
}
}
Simple tool that closes all trades at a given time
Hello
As the topic says, i'm looking for a simple tool/EA that closes all trades at a given hour.
close open position at trendline break
hi guys! i just want to ask you if you know of any script that closes an open position when a trendline(which i drew manually) is broken? thnx
The scripts I am using (some people asked me to re-post it by PM because they got errors so I did).
Hello As the topic says, i'm looking for a simple tool/EA that closes all trades at a given hour.
I am looking for the same thing. Will let you know if I find it.