simple expert setting

Avatar
  • updated
  • Answered

I would like to create a setting in which to decide whether to open a buy or a sell with tp and sl set in pips. when the ea reaches sl or tp it must reopen a trade in the same direction. this must happen until the expert reaches a maximum loss that I must be able to define in euros. this amount must refer only to the loss generated by this expert and not by other ea or manual trades. can someone help me?

Avatar
0
paolo

neither of them is what I need. I need to be able to decide the position, long or short, which must always be the same and must continue to open until it reaches a pre-set loss in euros. Without however considering other experts or other manual positions

Avatar
0
Andrey Khatimlianskyi
  • Answered

What do you want to do with this max loss? How to use it? Stop trading forever?

You can set the desired direction by this parameter. But you can't change it dynamically. Consider using a signal from a large TF to determine trade direction.

I recommend refining your strategy by using a series of orders. Instead of closing at SL and opening a new trade, just open a new trade with a smaller lot. This way you can manage the losses and profits of the series.