EA not working as expected.
-
Hello Everyone.
I built an EA that is meant to place a buy and sell limit order 5pips both above and below the open of the new candle but due to one thing or another which I have no idea of, it doesn't function, rather it places a buy limit and a sell stop only after the price must have passed 5 pips from the open price.
Please, I need help in helping me do it right. Maybe a screenshot of what it should look like.
@l-andorrĂ @miro1360 @roarhttps://fxdreema.com/shared/HgCu7rNP
That is a link to the EA -
@laudable222 Hello,
Could it be that the 5 pips are not enough when relative to the spread size and broker minimum limits? (To test and see if this was the problem, use -20 instead of -5 and check if the problem persists or actually the higher value fixes it)
I would say you should place these pending orders relative to the ASK and BID prices instead of the candle close price which is actually the BID price in most cases.
-
@q8carpenter alright sir. Will do just that.