Files:
dcdcdc.JPG
55 kb
You need to add (int), because the result of StringToInteger command is long type
//+------------------------------------------------------------------+ //| Findoud How much order Open in Trade window | //+------------------------------------------------------------------+ int GetOrderNum() { string comment; for(int i=OrdersTotal()-1;i>=0;i--) { bool select=OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if(OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber) { comment=OrderComment(); break; } } string result[]; ushort u_sep=StringGetCharacter("_",0); int k=StringSplit(comment,u_sep,result); return((int)StringToInteger(result[1]));// warning this section }
biantoro kunarto:
Yes Its working ..... :) Thank you Biantoro Kunarto.
You need to add (int), because the result of StringToInteger command is long type
komoles:
Yes Its working ..... :) Thank you Biantoro Kunarto.
You're welcome
Yes Its working ..... :) Thank you Biantoro Kunarto.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register