fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    How can I avoid this?

    Questions & Answers
    2
    5
    1163
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MarianoMartinez last edited by

      I set my EA to buy when candle close crosses the parabolic sar, but when it enters on the long side it gets filled on the ask, not the bid, and this is not always the close of the candle, but higher, you can see it better on the image. How can I avoid it? I want the EA to buy on the exact close price 0_1569980100866_Sin título.png

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @MarianoMartinez last edited by

        @marianomartinez I think the 9nly way to guarantee a maximum price for a trade is a limit order.
        There will always be spread and/or slippage that will interfere hitting the desired price.

        I like to share my knowledge, but expect the others to contribute as well.

        1 Reply Last reply Reply Quote 0
        • M
          MarianoMartinez last edited by

          Thanks for your answer phillips, what if I add this condition? Have you tried it? 0_1570014804214_Sin título.png

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @MarianoMartinez last edited by

            @marianomartinez Is this a negative condition? If Bid > PSAR don't open trade? That may work for the current tick, but it doesn't mean it will be valid for the time when your order is filled.
            Maybe better to have a max spread condition and avoid opening of trades if speads are to wide?!

            I like to share my knowledge, but expect the others to contribute as well.

            1 Reply Last reply Reply Quote 0
            • M
              MarianoMartinez last edited by

              It's a positive condition, if Bid > PSAR the trade executes, it worked actually, at least most of the times. But I had to change to tick ID 0. It prevents false breakouts like the one I described in the first post.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Online Users

              H
              M
              S
              S
              L
              E
              M
              A
              S

              18
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors