Grid Trading - Orders Doubling Up
-
Hi,
I am trying to create an EA with an unconventional way of grid trading.
I am using round numbers and buy/sells. After the first level, I am telling it to pick up from the buy or sell that has been placed and reinitialize the round numbers buy/sell loop.
This is all fine for what I need it to do BUT it seems that once it returns to an open trade buy or sell level, it doubles up the buy or the sell.
Is there a way I can check if an order is open at price level already and if so do not buy or do not sell?
I need to be careful with this one because I can have a sell and a buy on the same price level this is no problem and actually wanted, what I can't have is 2 sells or 2 buys at the same price.
I have attached a screenshot of my current configuration which is fine with exception of doubling up on buys and sells when moving away from an open trade and returning to it at a later instance.
Thanks,
Daniel
......
Screenshot_1.png -
There is a block "No trade nearby".
-
Thanks for your help. I will give it a try!

Daniel