florenceale:
Hi, one question,
is it possible to delete a TP or SL once added by script?
I have also a custom function of OrderModify...but with parameters 0,0 it doesn't seem to work
- You asked two questions.
- Right click on the order and modify, right click on the TP/SL and select cancel (top line.)
- "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't
start, won't go in gear, no electrical, missing the key, flat tires -
meaningless.
We can't see your broken code.
There are no mind readers here and our crystal balls are cracked. -
Check your return codes for errors and report them.
Check your return codes and you would know why.
What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
- "Doesn't work" is meaningless - just like saying the car doesn't work. Doesn't
start, won't go in gear, no electrical, missing the key, flat tires -
meaningless.
yes i know perfectly how to do that with the program, but i want to know if I can do by script.
When i already have SL and TP, want to know if with something like this...
OrderModify(ord_a,Bid,0,0,0,0);
I can get back to have no SL and no TP...
but it "doesn't seem to work" in this way...
florenceale:
yes i know perfectly how to do that with the program, but i want to know if I can do by script.
When i already have SL and TP, want to know if with something like this...
OrderModify(ord_a,Bid,0,0,0,0);
I can get back to have no SL and no TP...
but it "doesn't seem to work" in this way...
- A script is a program.
- You can't modify the open price of an opened order. Select the order (if not currently done) and use OrderOpenPrice()
-
Check your return codes for errors and report them.
What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles

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
Hi, one question,
is it possible to delete a TP or SL once added by script?
I have also a custom function of OrderModify...but with parameters 0,0 it doesn't seem to work