Trend following EA, manually trigger BUY to set 50 pips TP & SL, when hit TP open new Buy Entry with TP (50 pips) and SL (50 pips). To continue this loop, when price hit SL to automatically Open SELL 50 pips TP & SL?
-
I am new here, how do I make an EA after I manually trigger BUY Market Order to set TP (50 pips) and SL (50 pips), when hit TP open new Buy Entry with TP (50 pips) and SL (50 pips). When price hit SL to Open SELL Market Order with TP (50 pips) and SL (50 pips). Thank you for your kindness.
My First attempt:-link text
 -
Under "on Trade" better don't put that Buy block above the event-filter purple blocks. Like that you would see a new trade every time some trade event happens...even the creation of the buy trade itself... the chance is that you now have endless loop of buying trades.
First of all, for the EA to work with manually created trades, do this:

To set SL/TP on a newly created trade, you can use the "on Trade" event, but with something like Trade created -> Modify stops
It's similat to detect when TP or SL is hit - with those "Trade closed" blocks. Open their parameters and you will see options. You can detect the type (buy or sell) also in "Trade closed". "For each Closed Trade" are not needed.