EA-33903 · Utility

Display total StopLoss and TakeProfit value

This is a chart utility indicator that calculates and displays the total monetary value of all open positions' StopLoss and TakeProfit levels on the chart. It updates in real-time on every tick, showing the aggregated SL and TP exposure in account currency.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryUtility
RiskSafe
Rating★★☆☆☆
TypeUtility tool
TimeframesM1, M5, M15, M30, H1, H4, D1
Indicators—
Authormfx123 & Conor Dailey

Backtest results (H1, about 1 year)

Not backtested yet — this EA could not be converted automatically.

Strategy analysis

This is not a trading strategy EA but an information display utility. Its core function iterates through all current positions, calculates the monetary value of each position's StopLoss and TakeProfit, and aggregates the total for display on the chart. The calculation logic converts price differences to monetary values, accounting for different symbols' tick values, lot size, and swap fees. Entry and exit conditions are not applicable since this EA does not execute any trading operations. Regarding position management, it only reads existing position information without modifying or opening positions. For money management, it provides visualization of total SL/TP exposure to help traders assess overall risk, but does not perform any money management operations itself. The utility optimizes display update frequency by comparing values between ticks to avoid unnecessary redraws.

Strengths

  • Provides real-time total SL/TP monetary value display, helping traders quickly assess overall risk exposure
  • Calculation logic accounts for symbol tick value differences, lot sizes, and swap fees comprehensively
  • Optimizes update frequency by comparing values between ticks, reducing unnecessary chart redraws
  • Runs as an indicator on the chart window without affecting trading operations, safe to use
  • Clean code structure with single clear purpose, easy to understand and maintain

Weaknesses

  • GetMultiplier uses hardcoded digits-to-multiplier mapping, unable to handle non-standard symbols like JPY pairs or special instruments
  • GetPips2Dbl and GetMultiplier functions have overlapping functionality with redundant calculation logic prone to precision errors
  • Does not distinguish account currencies, directly summing SL/TP values of all positions without considering multi-currency exchange rate conversion
  • The swap fee handling in SL calculation (directly deducting from SL amount) is logically inconsistent
  • Lacks error handling; when SymbolInfoDouble or similar functions return abnormal values, calculations may produce incorrect results

Possible improvements

  • Use SYMBOL_TRADE_TICK_VALUE and SYMBOL_TRADE_TICK_SIZE directly for pip value calculation instead of hardcoded GetMultiplier function, improving symbol compatibility
  • Add multi-currency support with account currency conversion to ensure accurate total SL/TP calculation across different currency positions
  • Add error handling and boundary checks including SymbolInfoDouble return value validation, zero-division protection, and PositionSelectByTicket failure handling

Risk assessment

Overall risk: Safe

  • This tool only reads and displays information without executing any trading operations, posing no financial risk
  • Calculation errors may cause inaccurate displayed SL/TP values, potentially affecting trader risk judgment decisions

Evaluation scores

Code quality2.0
Strategy logic2.0
Risk management4.0
Robustness2.0
Innovation1.0
Documentation1.0
Overall2.0

Parameters

ParameterDefaultDescription
label"sltp"Chart label object name
CORNER_LEFT_LOWER内置常量Label displayed at chart lower-left corner
OBJPROP_XDISTANCE0Label horizontal offset in pixels
OBJPROP_YDISTANCE50Label vertical offset in pixels
OBJPROP_COLORclrGoldenrodLabel text color
OBJPROP_FONTSIZE16Label font size

Similar Utility EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.