DislikedI am requesting assistance with an Expert Advisor I've been working on. It's intended to function as an "Equity Sentry," closing all trades when a specific total floating profit or loss is reached. 1. Desired Behavior: The EA should continuously monitor the sum of the floating P/L of all open trades. If this total floating P/L reaches a positive target (e.g., +$20) or a negative stop-loss, it should immediately close all open trades. 2. Current (Incorrect) Behavior: When the total floating P/L approaches the target, the EA closes only a subset of...Ignored
Here is a script which should work:
Attached File(s)
However, you need to check with your broker, because this isn't a "free-for-all" game.
Brokers have limits on how many trades we can close at one time.
.ex4/.ex5 files can't be fixed or modified / I'm not a coder!
1