Edit Your Comment
OrdersTotal in a specif pair of currencies

forex_trader_318221
Apr 07, 2016 부터 멤버
게시물37
Aug 20, 2009 부터 멤버
게시물256
Aug 15, 2016 at 06:45
(편집됨 Aug 15, 2016 at 06:48)
Aug 20, 2009 부터 멤버
게시물256
Use this function :-
int Trade_Count(int My_Magic, string my_symbol)
{
int
counter = 0;
for(int i = OrdersTotal()-1;i>=0;i--){
if(OrderSelect(i,SELECT_BY_POS)>0){
if(StringFind(OrderSymbol(),my_symbol,0)>-1){
if(OrderMagicNumber()==My_Magic)counter++;
}
}
}
return(counter);
}
Function call would be something like :-
Number_of_Orders = Trade_Count(12345, "EURGBP");
int Trade_Count(int My_Magic, string my_symbol)
{
int
counter = 0;
for(int i = OrdersTotal()-1;i>=0;i--){
if(OrderSelect(i,SELECT_BY_POS)>0){
if(StringFind(OrderSymbol(),my_symbol,0)>-1){
if(OrderMagicNumber()==My_Magic)counter++;
}
}
}
return(counter);
}
Function call would be something like :-
Number_of_Orders = Trade_Count(12345, "EURGBP");
Wealth Creation Through Technology
Aug 20, 2009 부터 멤버
게시물256

forex_trader_318221
Apr 07, 2016 부터 멤버
게시물37
Aug 20, 2009 부터 멤버
게시물256

forex_trader_72824
Apr 08, 2012 부터 멤버
게시물9
Aug 17, 2016 at 15:47
Apr 08, 2012 부터 멤버
게시물9
JHenrique posted:
Hi guys!
I have another problem…
I want make this:
http://monitorfx.pl/
if(the number of orders in EURGBP < 2){do it…}
I know the function OrdersTotal(), but I don’t want to know the total, I want to know the total in EURGBP! So, how can I do it?
Thanks again!!
Didn't work...

*상업적 사용 및 스팸은 허용되지 않으며 계정이 해지될 수 있습니다.
팁: 이미지/유튜브 URL을 게시하면 게시물에 자동으로 삽입됩니다!
팁: @기호를 입력하여 이 토론에 참여하는 사용자 이름을 자동으로 완성합니다.