Close a position before the stop loss
-
I am looking for an option for my EA to close the position before the stoploss. I will be grateful for your help.
my project: https://fxdreema.com/shared/gd3BbWEkd
-
@piotras10000 At what distance is that supposed to happen? Or under which conditions?
-
@l-andorrà For example, the market is going in the wrong direction. I would like my EA to close the position as soon as possible to avoid major losses.
-
@piotras10000 That is easy to do for a human trader watching the screen. However, en EA need precise conditions to searcg on the chart for that to happen. This is the most difficult part to impelement most of the time. What conditions would define a change in the market 'as soon as possible'?
-
@l-andorrà For example, the stoploss is set to 1000 points. For example, to close at 200 points
-
@piotras10000 Do you mean closing at a 200 pips distance form the current SL? Why not using a trailing stop instead?
-
@l-andorrà Is there perhaps another option instead of using Trailingstop?
-
@piotras10000 Yes, of course, but the problem is that I don't see what criteria are required for that to happen. What do you need the EA to search on the market exactly?