Edit Your Comment
Freebies by MetaCoder
Dec 08, 2011 at 11:24
(editado Dec 08, 2011 at 10:01)
Membro Desde Nov 26, 2011
119 posts
This is a script for closing multiple orders with specific magic No. Hope ya'll enjoy it.
extern int xi_magicNum = 0;
extern int xi_howMany = 0;
int start() {
int l_ticket_0;
string l_symbol_8;
double l_price_16;
double l_ord_lots_24;
int li_36;
int l_count_32 = 0;
int l_pos_40 = 0;
if (!xi_howMany) li_36 = OrdersTotal();
else li_36 = xi_howMany;
while (l_pos_40 < OrdersTotal() && l_count_32 < li_36) {
RefreshRates();
l_ticket_0 = OrderSelect(l_pos_40, SELECT_BY_POS);
if (l_ticket_0 == 1) {
if (xi_magicNum && xi_magicNum != OrderMagicNumber()) {
l_pos_40++;
continue;
}
l_ticket_0 = OrderTicket();
l_symbol_8 = OrderSymbol();
l_ord_lots_24 = OrderLots();
l_price_16 = MarketInfo(l_symbol_8, MODE_BID);
if (OrderType() == OP_SELL) l_price_16 = MarketInfo(l_symbol_8, MODE_ASK);
if (OrderType() > OP_SELL) {
if (OrderDelete(l_ticket_0) == 0) Print("ERROR OrderDelete: ", GetLastError());
else l_count_32++;
} else {
if (OrderClose(l_ticket_0, l_ord_lots_24, l_price_16, 50) == 0) Print("ERROR OrderClose: ", GetLastError());
else l_count_32++;
}
}
}
return (0);
}
extern int xi_magicNum = 0;
extern int xi_howMany = 0;
int start() {
int l_ticket_0;
string l_symbol_8;
double l_price_16;
double l_ord_lots_24;
int li_36;
int l_count_32 = 0;
int l_pos_40 = 0;
if (!xi_howMany) li_36 = OrdersTotal();
else li_36 = xi_howMany;
while (l_pos_40 < OrdersTotal() && l_count_32 < li_36) {
RefreshRates();
l_ticket_0 = OrderSelect(l_pos_40, SELECT_BY_POS);
if (l_ticket_0 == 1) {
if (xi_magicNum && xi_magicNum != OrderMagicNumber()) {
l_pos_40++;
continue;
}
l_ticket_0 = OrderTicket();
l_symbol_8 = OrderSymbol();
l_ord_lots_24 = OrderLots();
l_price_16 = MarketInfo(l_symbol_8, MODE_BID);
if (OrderType() == OP_SELL) l_price_16 = MarketInfo(l_symbol_8, MODE_ASK);
if (OrderType() > OP_SELL) {
if (OrderDelete(l_ticket_0) == 0) Print("ERROR OrderDelete: ", GetLastError());
else l_count_32++;
} else {
if (OrderClose(l_ticket_0, l_ord_lots_24, l_price_16, 50) == 0) Print("ERROR OrderClose: ", GetLastError());
else l_count_32++;
}
}
}
return (0);
}
My recommended Broker
Dec 08, 2011 at 15:55
Membro Desde Nov 26, 2011
119 posts
My recommended Broker
Dec 08, 2011 at 15:56
Membro Desde Nov 26, 2011
119 posts
My recommended Broker
Jan 02, 2012 at 09:16
Membro Desde Jan 02, 2012
26 posts
any can help me about my ea code... almost 100% win but..... it make sell trade only...
i wanna make both trade... buy and sale...
here my link
http://1millionaireclub.blogspot.com/2012/01/almost-100-win-low-drawdown.html
i wanna make both trade... buy and sale...
here my link
http://1millionaireclub.blogspot.com/2012/01/almost-100-win-low-drawdown.html
Always win ...i Hope..
Jan 02, 2012 at 11:46
Membro Desde Jan 02, 2012
26 posts
ooohh we also can attach here .. sorry newbies,, hik..
Always win ...i Hope..
Jan 02, 2012 at 11:47
Membro Desde Jan 02, 2012
26 posts
the best setting :
trailling 9
stop loss 300
plotlot true
maxorder 4
eachtickmode false
lots.... max trade lot (of the account)
min deposit... wanna trade 8 lot min 1200
wanna trade 80 lot min 12000
the best pair eurusd...
the best timeframe M30
my computer was very slow.. so never test for 10year previous
can anyone test give a result here... the best myfxbook.com
trailling 9
stop loss 300
plotlot true
maxorder 4
eachtickmode false
lots.... max trade lot (of the account)
min deposit... wanna trade 8 lot min 1200
wanna trade 80 lot min 12000
the best pair eurusd...
the best timeframe M30
my computer was very slow.. so never test for 10year previous
can anyone test give a result here... the best myfxbook.com
Always win ...i Hope..
Jan 04, 2012 at 13:41
Membro Desde Jan 02, 2012
26 posts
finally i found it...
my contest acc work perfect...
https://www.myfxbook.com/members/jebat/jebat-contest-acc/217376😎
my contest acc work perfect...
https://www.myfxbook.com/members/jebat/jebat-contest-acc/217376😎
Always win ...i Hope..

forex_trader_29148
Membro Desde Feb 11, 2011
1768 posts
Jan 05, 2012 at 15:48
Membro Desde Feb 11, 2011
1768 posts
THE LOT SIZE THAT YOU PUT (AFTER THE TERRIBLE MISTAKE OF A 8.0 LOT) SEEMS TO BE OK NOW,IF IT KEEPS GOING THIS WAY YOU WILL GET OUT FROM THE HOLE SOON...😄
Jan 05, 2012 at 18:00
Membro Desde Jan 02, 2012
26 posts
ooo ok i get it...i just wanna try on demo acc with high lot + high risk hik... but the real account 1lot and below...
in first ea just come with 1 strategy... and this contest acc more than 7 strategy on 1 ea(more RAM need ahhh)... anyway tq alot for helping me out...
i will find so solution for these situation .... any suggestion, trick, strategy and comment for make better EA... i hope next day this ea will helping out our trader..
😀
in first ea just come with 1 strategy... and this contest acc more than 7 strategy on 1 ea(more RAM need ahhh)... anyway tq alot for helping me out...
i will find so solution for these situation .... any suggestion, trick, strategy and comment for make better EA... i hope next day this ea will helping out our trader..
😀
Always win ...i Hope..

*Uso comercial e spam não serão tolerados, podendo resultar no encerramento da conta.
Dica: Postar uma imagem/URL do YouTube irá incorporá-la automaticamente no seu post!
Dica: Insira o sinal @ para preencher automaticamente um nome de utilizador que participe nesta discussão.