P_pro / Money manager 1.0
This EA automatically opens a sell position on every tick when no positions exist, then monitors open positions and closes them when profit or loss reaches a user-defined percentage of account balance, factoring in lot commissions and spread costs. P_pro adds the auto-entry sell logic while Money manager 1.0 only handles the closing logic. Both share identical profit/loss closing mechanisms based on account balance percentages.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
Strategy concept: The core logic is an account-balance-percentage-based profit/loss management utility rather than a technically-driven trend following or momentum strategy. Entry conditions: The P_pro variant automatically opens a 0.1-lot sell position at the current Bid price on every tick when no positions exist, with absolutely no technical analysis signal or directional judgment. Exit conditions: Positions are closed when profit reaches (PD% × account balance + commission + spread) or when loss reaches (-(LD% × account balance) - commission - spread). Position sizing: Fixed lot size of 0.1 lots with no dynamic position sizing or proportional money management calculation. Money management: Profit/loss thresholds are set based on account balance percentage with commission and spread costs factored in, but the spread calculation in ClosePosLoss is buggy — using Bid-Ask yields a negative value instead of the correct spread. The overall strategy lacks any directional analysis and is purely a mechanical operation of opening a position then waiting for profit/loss thresholds to trigger.
Strengths
- Factors commission and spread costs into profit/loss calculations, providing more realistic thresholds
- Allows flexible enabling or disabling of profit/loss closing functions with configurable toggles
- Uses account balance percentage rather than fixed pip amounts for thresholds, enabling adaptive adjustment as capital changes
- Iterates positions from back to front, avoiding index shift issues when closing positions during iteration
Weaknesses
- Spread calculation bug in ClosePosLoss: uses Bid-Ask instead of Ask-Bid, producing a negative spread value that distorts the loss threshold calculation
- Entry logic is an unconditional sell with no technical indicators or directional judgment — purely blind order opening
- No order-level stop loss or take profit is set, relying entirely on tick-level monitoring; if the EA disconnects, positions have zero protection
- Fixed lot size of 0.1 with no dynamic position sizing based on account balance or risk percentage
- Extra unnecessary brace nesting in ClosePosLoss function, indicating messy code structure
- No new bar detection or time filtering; all logic executes on every tick, potentially causing unnecessary performance overhead
Possible improvements
- Fix spread calculation in ClosePosLoss: should use Ask-Bid instead of Bid-Ask to ensure a positive spread value
- Add technical indicator-based entry signals or directional judgment instead of unconditional selling
- Set order-level stop loss and take profit when opening positions as a safety net when the EA is disconnected
- Add dynamic position sizing that automatically adjusts lot size based on account balance and risk percentage
- Add new bar detection mechanism to avoid redundant calculations and checks on every tick
- Add maximum position count limits and maximum holding time limits to prevent prolonged market risk exposure
Risk assessment
Overall risk: High risk
- Entry logic is an unconditional sell with no directional judgment, equivalent to random-direction trading
- No order-level stop loss/take profit; if EA disconnects, positions are completely unprotected and losses can far exceed LD%
- Spread calculation bug causes inaccurate loss-closing thresholds, potentially delaying or prematurely triggering stops
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
lot | 0.1 | Fixed trading lot size |
ProfitDeal | Enable | Enable profit closing |
LossDeal | Enable | Enable loss closing |
PD | 5 | Profit close threshold as % of account balance |
LD | 5 | Loss close threshold as % of account balance |
LotComission | 7 | Commission per lot (USD) |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.