Not logged in
Viewing 4 posts - 1 through 4 (of 4 total)

Forums>AlgoWizard / EA Wizard>Application Support>Stop order too close to actual price, option to enter at market?

  • #233252 |
    Participant
    19 Posts

    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.

    #233269
    tomas262
    Administrator
    1826 Posts

    Hello,

    for this a condition can be added “if StopPrice < Ask” the Buy Market

    Check the example attached

    Attachments:
    You must be logged in to view attached files.
    #233278
    Participant
    19 Posts

    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!

    #233290
    tomas262
    Administrator
    1826 Posts

    You can setup a variable for magic number. See the file attached

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.