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

forex_trader_29148
เป็นสมาชิกตั้งแต่ Feb 11, 2011
1768 โพสต์
Jan 05, 2012 at 15:48
เป็นสมาชิกตั้งแต่ Feb 11, 2011
1768 โพสต์
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
เป็นสมาชิกตั้งแต่ 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 url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ