Hi Directman,
Details as provided in the PM…
The EA to open a trade in the opening of the new bar in the same signal direction at a market price and place a 100 pip stop for protection.
If the condition changes in the next bar, it will change nothing unless the bar is closed. When the bar is closed, if the direction is the same, it will change nothing but if the signal is different it will reverse the position and place a new stop of 100 pips.
In addition to all of that, a trailing stop is required that moves the stop by 50 pips for every 100 pips move in the same direction.
Additionally, if the stop is triggered, there should be no new position opened unless the signal direction changed to the opposite direction after opening a new bar.
Please also keep all the visuals of the existing indicator.