fxDreema

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

    How to stop orders stacking in my grid ea.

    Questions & Answers
    2
    2
    1059
    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.
    • B
      BenTyekiff last edited by

      Hello Guys and Gals

      Does anyone know how to stop my ea from stacking orders on top of each other while using the grid of pending orders block?

      I am trying to great a directionless grid trading system with buy and sell orders 50 pips apart with a 50 pip take profit. If i already have a live open buy and sell order at a given level i wish to prevent the ea from placing further pending orders at this level, while keeping the rest of the stop and limit orders in my grid in place?

      as soon as an order hits tp, it needs to be repalced at exactly the same level as the original order was entered, while preventing stacking of orders at that level if price consolidates on it for a while before cashing out at the tp.

      All help and suggestions greatly appriciated.

      Cheers
      Ben

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Buy/Sell blocks are just doing what they do - buying or selling, they don't care about the existence of other orders. There are blocks to check whether there are orders or trades nearby (search for "nearby" in the list), but they are not looking for multiple different possible prices where orders could be found.

        Otherwise it's not hard to replace closed trade with an order. Try something like this in "on Trade"
        0_1552922411652_a811749f-fd42-4bab-b3f3-a951755c6c26-image.png

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

        Online Users

        D
        V
        O
        J
        B

        14
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors