Edit Your Comment
Freebies by MetaCoder
Dec 08, 2011 at 11:24
(已编辑 Dec 08, 2011 at 10:01)
会员从Nov 26, 2011开始
119帖子
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
会员从Nov 26, 2011开始
119帖子
My recommended Broker
Dec 08, 2011 at 15:56
会员从Nov 26, 2011开始
119帖子
My recommended Broker
Jan 02, 2012 at 09:16
会员从Jan 02, 2012开始
26帖子
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
会员从Jan 02, 2012开始
26帖子
ooohh we also can attach here .. sorry newbies,, hik..
Always win ...i Hope..
Jan 02, 2012 at 11:47
会员从Jan 02, 2012开始
26帖子
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
会员从Jan 02, 2012开始
26帖子
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..
Jan 05, 2012 at 18:00
会员从Jan 02, 2012开始
26帖子
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..

*商业用途和垃圾邮件将不被容忍,并可能导致账户终止。
提示:发布图片/YouTube网址会自动嵌入到您的帖子中!
提示:键入@符号,自动完成参与此讨论的用户名。