How to stop orders stacking in my grid ea.
-
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 -
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"
