code for belw, can't modefy all ticdet's ordertakeprofit
- help me,orderdele error
- helpme the trail stoploss problom
- help the simple code output is error
Print the Error when the OrderModify fails . . .
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
zdj229 2012.09.25 14:01
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
zdj229:
my broker change my ordercommend()? why
how can solove the problem
OrderMagicNumber()
Why don't you use it ??
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