why this simple code can not Correct modyfy my ticket
- help me,orderdele error
- helpme the trail stoploss problom
- help the simple code output is error
int temp1024=StrToInteger(OrderComment()); if(getsuocangzhi(temp1024)==0)
OrderComment() can be changed by your broker
That makes it possible that you not get the integer you want ...
my broker change my ordercommend()? why
how can solove the problem
- Brokers can change comments, including complete replacement.
- Always count down
- How should we know, you don't say what your storing there or why. https://www.mql5.com/en/forum/134204
From other topic zdj229 create
int getchicangshu(int chidan) { int chicangshu=0; if(OrdersTotal()>0) { for(int tt1=0;tt1<OrdersTotal();tt1++) { if(OrderSelect(tt1,SELECT_BY_POS,MODE_TRADES)==true) { if((OrderType()==OP_BUY)||(OrderType()==OP_SELL)) { int temp8512=StrToInteger(OrderComment()); if(chidan!=temp8512) continue; chicangshu=1; break; } } } return(chicangshu); } }
i use the Function count the Current positions,but output is incorrect why
i have the ticket,but the script output 0,why
my broker change my ordercommend()? why
how can solove the problem
OrderMagicNumber()
Why don't you use it ??