Stop order too close to actual price, option to enter at market?
3 replies
ddilbeck
6 years ago #233252
Hello, I have modified the sample “range breakout” strategy that is included in the EA Wizard, however, sometimes when the pending order is too close to the actual price it will fail to place the pending order. Is there a way to configure the EA to enter at market if this situation occurs. I want to keep everything else the same. Thanks in advance.
tomas262
6 years ago #233269
Hello,
for this a condition can be added “if StopPrice < Ask” the Buy Market
Check the example attached
ddilbeck
6 years ago #233278
Thank you. Upon initial testing it seemed to work just fine after I modified the magic number as I was getting an error that the same magic number couldn’t be used for more than one order. Thanks again!
tomas262
6 years ago #233290
You can setup a variable for magic number. See the file attached
Viewing 3 replies - 1 through 3 (of 3 total)