Hello guys, I am trying to create a condition were the EA will not trade if the last closed trade was within a certain pip range of the current signal.
-
Tried numerous ideas but no result. I can see a 'no trade nearby, button, but it does not consider the closed trades. My logic behind this is to avoid unnecessary losses in a ranging market. My strategy is based on volatility, and maximum time for an open trade will be less than 2-3 mins. I am not a programmer but learns fast. If possible can someone help me out here. Thank you
-
@ebinlazar You can do something like this:

In this example the buy will only be open if price right now is at lest 5 pips above the last closed trade's open price. You can also add another condition block to specify 5 pips below it if necessary.
-
@l-andorrà Great mate, I will give this a try. Thank you. But is to possible to add an adjustment like +& - certain pips. I am looking to add a range. No trades above and below the last closed. Much appreciated. The win rate has increased with your idea, but I believe the win % will go even higher if I can do a +&-
-
[0_1676832473817_12 EMA Trader updates (1).mq4](Uploading 100%)
This is what I have done actually. Added two blocks, +500pips and -500pips -
@ebinlazar No image is visible.