True Trading Cost Planner
- Indicatori
-
Sondang Willborn Soeraja Manik
Forex Trader | MetaTrader Tools & Broker Research
Forex trader based in Indonesia, with a focus on price action, market structure and disciplined risk management. I take a structured approach to chart analysis, position sizing and reviewing trading decisions. - Versione: 1.20
True Trading Cost Planner for MetaTrader 5
Plan your trades with a clearer understanding of risk, reward, and actual trading costs.
True Trading Cost Planner is an interactive trade-planning indicator for MetaTrader 5. It helps traders calculate position size, estimate trading expenses, evaluate net risk-to-reward ratios, and visualize entry, stop-loss, and take-profit levels directly on the chart.
Unlike a basic risk/reward calculator, this indicator considers user-defined commissions, slippage assumptions, additional fees, and optional overnight swap estimates to provide a more realistic view of potential trade outcomes.
Key Features
- Interactive Trade Planning: Choose BUY or SELL and adjust entry, stop-loss, and take-profit levels directly on the chart.
- Risk-Based Position Sizing: Calculate lot sizes using a percentage of account equity or a fixed trading volume.
- Net Risk-to-Reward Calculation: Compare gross risk/reward with estimated net results after modeled trading costs.
- Commission and Fee Modeling: Include round-trip commissions, additional fees, and estimated slippage.
- Break-Even Price: Estimate the price required to offset modeled trading costs.
- Live Spread Display: Monitor the latest available bid/ask spread with warnings when market quotes may be stale.
- Overnight Swap Estimation: Optionally estimate rollover costs using available broker specifications or manually entered values.
- Spread Insights: View spread observations collected while the indicator is running, grouped by broker server hour.
- Risk and Cost Warnings: Receive visual warnings for invalid trade levels, missing broker data, high costs, or insufficient position size.
- Interactive Dashboard: Review important calculations in one organized chart panel.
How to Use
- Install the indicator and attach it to a MetaTrader 5 chart.
- Choose your preferred position-sizing method in the indicator settings.
- Enter your broker's commission and any additional trading fees.
- Select BUY or SELL on the dashboard.
- Drag the entry, stop-loss, and take-profit lines to your preferred price levels.
- Review the calculated position size, gross and net risk/reward, and estimated break-even price.
- Adjust your trade plan until the estimated risk and costs match your trading requirements.
- Click RESET whenever you want to initialize a new plan.
Understanding the Dashboard
Entry: The planned entry price for a BUY or SELL position.
Stop Loss: The planned exit level if the trade moves against the position.
Take Profit: The planned target price if the trade moves favorably.
Position Size: Estimated trade volume based on the selected sizing method and available symbol specifications.
Gross Risk and Reward: Potential loss and profit before additional modeled trading costs.
Net Risk and Reward: Estimated potential loss and profit after applicable modeled costs.
Net R:R: The ratio of estimated net reward to estimated net risk.
Break-Even: The estimated price needed to offset modeled expenses.
Indicator Settings
Position Sizing
- InpSizing: Select percentage-based risk sizing or fixed-lot sizing.
- InpRiskPercent: Percentage of account equity allocated to the planned risk.
- InpFixedLots: Fixed position volume when fixed-lot mode is selected.
Trading Costs
- InpCommissionRoundTurnPerLot: Round-trip commission per lot in account currency.
- InpCommissionVerified: Confirm that the commission assumption has been checked.
- InpExtraFeesRoundTurnPerLot: Additional known round-trip fees per lot.
- InpSlippageRoundTurnPoints: Assumed total round-trip slippage in points.
- InpWarnCostTargetPercent: Warning threshold when modeled costs become high relative to the gross target.
Initial Trade Levels
- InpInitialStopATRMultiplier: ATR multiplier used to initialize the stop distance.
- InpInitialTargetRR: Initial target distance relative to the stop distance.
- InpFallbackStopPoints: Alternative stop distance if ATR data is unavailable.
Swap and Rollover
- InpSwapSource: Disable swap, use available broker data, or enter a manual estimate.
- InpRolloverDays: Number of future server-calendar days used for the swap projection.
- InpManualSwapPerLotNight: Manual swap estimate per lot and standard night.
- InpTripleSwapWeekday: Weekday used for triple-swap assumptions.
- InpSwapStartWeekdayOverride: Optional weekday override for manual simulation.
- InpSwapCalendarVerified: Confirm that rollover assumptions have been checked.
- InpIncludeSwapInNetRR: Include verified swap estimates in net calculations.
Manual Symbol Specifications
- InpUseManualSymbolSpecs: Enable manual symbol-specification simulation.
- InpManualTickSizePrice: Manually specified price increment per tick.
- InpManualTickValueProfit: Tick value used for profitable price movement.
- InpManualTickValueLoss: Tick value used for adverse price movement.
- InpManualMinLot: Simulated minimum trading volume.
- InpManualMaxLot: Simulated maximum trading volume.
- InpManualLotStep: Simulated trading volume increment.
- InpManualAccountCurrency: Currency label used when broker currency information is unavailable.
Display and Monitoring
- InpPanelX and InpPanelY: Dashboard position on the chart.
- InpShowBreakEvenLine: Show or hide the estimated break-even line.
- InpUpdateSeconds: Dashboard refresh interval.
- InpCollectSpreadStats: Enable spread observations collected during the current session.
- InpShowInsightsPanel: Show or hide the additional swap and spread information panel.
Important Calculation Notes
The indicator uses available broker symbol specifications and tick values when calculating monetary risk and reward. Actual results can vary according to account currency, contract specifications, liquidity, execution conditions, and trading fees.
The displayed spread is informational and is not charged twice when bid/ask execution prices are already reflected in the plan.
Swap projections are estimates. Swap is included in the net calculation only when the required verification and inclusion settings are enabled.
Manual symbol specifications are intended for simulation and checking calculations, not as a substitute for verified live broker data.
Important Information
True Trading Cost Planner is designed for trade planning, risk assessment, and educational analysis.
It does not execute trades, manage open positions, generate trading signals, or predict market direction.
All figures are estimates. Actual trading results may differ due to changing spreads, execution prices, commissions, swaps, and slippage. Traders should verify the relevant broker specifications before making trading decisions.
Support
For questions, feature suggestions, or bug reports, please use the MQL5 product Comments section or contact the developer through MQL5 messages.
Plan your risk. Understand your costs. Evaluate your net reward.
