'Close all'/'Open' tools - page 6 12345678910111213...60 New comment derekz 2007.11.15 22:27 #51 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 Script file for input MT4 suggestion buy or sell script kjhfdgjfhdghdf 2007.11.16 02:54 #52 Do you mean from an existing indicator? An EA that buys and sells from an existing indicator? Sergey Golubev 2007.11.16 12:40 #53 derekz: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 Some scripts to open the orders were posted here https://www.mql5.com/en/forum/177914/page3 dimicr 2007.11.17 19:44 #54 Two useful scripts for manual traders They send orders very sure! Files: ordersendscripts.zip 31 kb manCatur 2007.11.21 06:59 #55 Dimicr:They send orders very sure! is it working bro? master001 2007.11.21 08:45 #56 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); } } } } Ask! Strategic foresight systems Any EA's that OPEN/CLOSE [Deleted] 2007.11.26 17:32 #57 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. [Deleted] 2007.12.10 22:25 #58 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 Sergey Golubev 2007.12.14 07:06 #59 The scripts I am using (some people asked me to re-post it by PM because they got errors so I did). Files: close_all_open_and_pending_orders.mq4 2 kb close_all_open_positions.mq4 2 kb closeall.mq4 6 kb orion7 2007.12.20 04:38 #60 irclay: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. 12345678910111213...60 New comment
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.