Modifying pending orders?
-
Hi guys,
I'm stuck. I want to set up two pending orders and edit them every 5 seconds so they are 10 pips from the current market price but cannot find an option:
- to move the pending orders once they are set
- to modify the SL and TP of pending orders (there's only an option to modify the SL/TP of already opened trades, not the pending limits
Could any of you help me? Thank you
-
What about "Trailing pending orders"? https://fxdreema.com/demo/mt4-trailing-pending-orders
-
Hello, thank you for your answer.
Yes, it seems that is exactly what I was looking for and I copied the example you pasted but it still doesn't work.
It opens two orders but then nothing happens. I used the step of 2 pipshttp://i.imgur.com/g4o3cYT.png
It would be great if the orders were changed every 2 pips for example OR every 2 seconds if it's possible.
-
Ok, I changed to work "On tick" and it seems to be working fine. Will test it tomorrow.
Another question though - when I use the "Terminate" command I get a pop up message on my MT4 that EA was terminated, is there some way to remove this notification?
-
Look at the settings of the block
-
Worked like a charm, amazing. Thank you!
Is there a way to make it edit the pending orders every X seconds though? I noticed tthat 'on tick' isn't quite stable, sometimes it edits them and sometimes it doesn't. It would be easier if I could just put 30 seconds or something and it would edit them automatically. I made one EA already with your tools and it had that feature but those were on positions already open, not on pending orders.
Thank you in advance
-
Hey Adrianbialkowski,
Move the block(s) to the "On Timer" section, then go to "Options -> Current Project Options -> Timer Event Period" to set the frequency.
Have fun!
Radar =8^) -
__Worked like a charm, amazing. Thank you!
Is there a way to make it edit the pending orders every X seconds though? I noticed tthat 'on tick' isn't quite stable, sometimes it edits them and sometimes it doesn't. It would be easier if I could just put 30 seconds or something and it would edit them automatically. I made one EA already with your tools and it had that feature but those were on positions already open, not on pending orders.
Thank you in advance[/quote:2sv0zpgj]
There is "on Timer" as well and this runs on every X seconds, no matter if there are ticks or not. The problem is that this can't be backtested and you don't really need that accurate seconds, i guess.
Under "on Tick" you can try some of the blocks in "Time Filters". They are not that accurate because ticks are not accurate, but I think that "Once per seconds" can do the job