Close of Pending Order as soon as new signal occurs
1 replies
Scout2408
11 years ago #113531
Hello Traders,
I am struggling with the following issue.
I would like to open a new buy/sell stop order every time my EA finds a new entry signal. Furthermore, the EA should cancel any existing pending order (which was caused by a previous entry signal and hasn´t been triggered so far) anytime a new entry signal occurs. So, at any time there should only be one single pending order existing.
When I set the “Replace existing order field” to true, the EA opens and cancels hundreds of orders permanently, but none of them gets filled, even if the stop price has been triggered. I´m pretty much at a loss right now and would be grateful for any kind of support.
Thanks.
Cheers,
Michael
0
Scout2408
11 years ago #129880
Hello,
Meanwhile, I was lucky to find at least one possible answer/solution by myself. I added the “IsBarOpen” to my condition.
As a result the “replace existing order” function works fine.
Cheers,
Michael
0
Viewing 1 replies (of 1 total)