'Close all'/'Open' tools - page 6

To add comments, please log in or register
derekz
166
derekz  

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

kjhfdgjfhdghdf
299
kjhfdgjfhdghdf  

Do you mean from an existing indicator?

An EA that buys and sells from an existing indicator?

Sergey Golubev
Moderator
111233
Sergey Golubev  
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
34
dimicr  

Two useful scripts for manual traders

They send orders very sure!

Files:
manCatur
4
manCatur  
Dimicr:
They send orders very sure!

is it working bro?

master001
50
master001  

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);

}

}

}

}

Mr G
25
Mr G  

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.

mon
39
mon  

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
Moderator
111233
Sergey Golubev  

The scripts I am using (some people asked me to re-post it by PM because they got errors so I did).

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

To add comments, please log in or register