Edit Your Comment
Brokers that support More than 100 Orders at a Time?

forex_trader_32776
會員從Mar 28, 2011開始
942帖子
Sep 27, 2012 at 07:09
會員從Mar 28, 2011開始
942帖子
Most brokers Max Order count stops at 100. Then the broker will refuse your next order.
What brokers accept more than 100? And not InstaForex.
Also More importantly, How can I find out this information within the Metatrader Platform.
Within MarketInfo ( ) ,, there is not a MAX Order COunt, Only Max Lots. Any help Much appreciated.
Thanks
What brokers accept more than 100? And not InstaForex.
Also More importantly, How can I find out this information within the Metatrader Platform.
Within MarketInfo ( ) ,, there is not a MAX Order COunt, Only Max Lots. Any help Much appreciated.
Thanks

forex_trader_79941
會員從Jun 06, 2012開始
1434帖子
Oct 01, 2012 at 17:37
(已編輯Oct 01, 2012 at 17:42)
會員從Jun 06, 2012開始
1434帖子
first you will ask your broker to learn the max number of trades that they allow.
then in your code
you will count trades that are not pending orders
extern int max orders allowed long == 100;
extern int max orders allowed short == 100;
void ordercount()
{
orderL=0;
orderS=0;
for(int a=0;a<=OrdersTotal();a++)
{
if(OrderSelect(a, SELECT_BY_POS, MODE_TRADES)==true)
{
if(OrderSymbol()==Symbol() && OrderMagicNumber() == Magic_N)
{
if(OrderType()==0)orderL++;
if(OrderType()==1)orderS++;
}
}
}
}
then you will limit your orders Long , Short regarding to the ordercount & max orders allowed .
if( orderL < max orders allowed long && your code.......................) send long order...........
same for short
or you can group short & long
this will help
good luck!
walker.
then in your code
you will count trades that are not pending orders
extern int max orders allowed long == 100;
extern int max orders allowed short == 100;
void ordercount()
{
orderL=0;
orderS=0;
for(int a=0;a<=OrdersTotal();a++)
{
if(OrderSelect(a, SELECT_BY_POS, MODE_TRADES)==true)
{
if(OrderSymbol()==Symbol() && OrderMagicNumber() == Magic_N)
{
if(OrderType()==0)orderL++;
if(OrderType()==1)orderS++;
}
}
}
}
then you will limit your orders Long , Short regarding to the ordercount & max orders allowed .
if( orderL < max orders allowed long && your code.......................) send long order...........
same for short
or you can group short & long
this will help
good luck!
walker.

*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。