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网址会自动嵌入到您的帖子中!
提示:键入@符号,自动完成参与此讨论的用户名。