Hello , I have a question.
example
1 2012.11.27 12:00 sell 249 0.01 1.29611 0.00000 1.29284 0.00 10026.26
2 2012.11.27 12:30 modify 249 0.01 1.29611 1.30013 1.29017 0.00 10026.26
3 2012.11.27 16:31 modify 249 0.01 1.29611 1.29739 1.28970 0.00 10026.26
I want to change green T/p (1.28970) to non value(0.00000) . I tried like below.
After I had declared a variable NonTP, I tried modify.
but T/p modified would not be changed to 0.00000
Could you tell me how ?
I'm looking forward to answer.
Please understand my bad english.
As we have no clue what values your H4_ variables have, we can only guess.
I guess this has been executed:
if((Bid<=H4_S10)&&(OrderType() == OP_SELL)) { OrderModify(OT,OOP,H4_R15,H4_S30,0,Blue); return; }Some Print() statements will help you to find it out
Hello , I have a question.
I want to change green T/p (1.28970) to non value(0.00000) . I tried like below.
After I had declared a variable NonTP, I tried modify.
but T/p modified would not be changed to 0.00000
Read this: What are Function return values ? How do I use them ?
As we have no clue what values your H4_ variables have, we can only guess.
I guess this has been executed:
Hello, Kronin^^
I know why.
I solved the problem thanks to you.
Thank you.
Don't you want to know if your OrderModify() works or not ? and if it fails don't you want to know why ? don't you want to know what the relevant variables were when it failed ?
Read this: What are Function return values ? How do I use them ?
oh,, Hello RaptorUK.
I'am reading the article you suggested.
Thank you for good information!
- Check your return codes What are Function return values ? How do I use them ? - MQL4 forum
- Always count down Loops and Closing or Deleting Orders - MQL4 forum
- You can use OrderClosePrice() instead of Bid/Ask when closing.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello , I have a question.
example
1 2012.11.27 12:00 sell 249 0.01 1.29611 0.00000 1.29284 0.00 10026.26
2 2012.11.27 12:30 modify 249 0.01 1.29611 1.30013 1.29017 0.00 10026.26
3 2012.11.27 16:31 modify 249 0.01 1.29611 1.29739 1.28970 0.00 10026.26
I want to change green T/p (1.28970) to non value(0.00000) . I tried like below.
After I had declared a variable NonTP, I tried modify.
but T/p modified would not be changed to 0.00000
Could you tell me how ?
I'm looking forward to answer.
Please understand my bad english.