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.
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.