SMT Trade Planner is a proressional risk calculator and trade execution panel right on your MetaTrader chart. It calculates lot sizes based on your risk settings, shows visual Entry, Stop Loss, and Take Prorit lines that you can drag directly on the chart, validates your trade against customizable risk rules, and lets you trade with a single click.
How it works
Add the Trade Planner to any chart. The panel displays your account information and quick-select risk buttons. Three horizontal lines appear on the chart: the Entry price (blue), Stop Loss (red), and Take Prorit (green). Drag a line to adjust your trade setup. All calculations update in real time as you move the lines. Direction is determined automatically based on the SL position relative to entry. When you're happy with your setup, click BUY or SELL to execute the trade with your calculated lot size, SL, and TP.
Panel sections
Account: Real-time display or balance, equity, and free margin with automatic currency symbol detection. Risk settings: Four quick-select buttons (default 0.5%, 1.0%, 1.5%, 2.0%) to set your risk percentage. Risk amount is shown in your account currency. Trade plan: Displays direction (LONG or SHORT with manual toggle), entry price, SL price and distance in pips, TP price and distance in pips. The LINK toggle locks the SL/TP ratio when you drag lines. Lot size: Calculates optimal lot size based on risk percentage and SL distance. Always rounds down to your broker's lot step so you never exceed your target risk. Shows a warning if minimum lot exceeds your risk target. Analysis: SL loss amount including spread and commission, TP prorit amount after costs, spread costs, commission costs, gross R:R ratio, and net R:R ratio. Warns when trading costs significantly worsen your R:R. Spread Monitor: Current spread in pips and account currency. Color-coded green (normal), orange (above average), and red (high) based on a rolling 100-tick average. Risk rules: Each rule displays PASS or FAIL with the current value. Minimum R:R, maximum risk percentage, maximum lot size, minimum and maximum SL distance, minimum TP distance. Execution buttons: BUY and SELL with calculated parameters. CLOSE ALL closes all positions on the current symbol. RESET returns lines to default positions. HIDE LINES toggles line visibility.
Key features
Visual trade planning with draggable Entry, SL, and TP lines that update all calculations live. Linked SL/TP mode that preserves your risk/reward ratio when dragging the entry line. Automatic pip value calculation for all instrument types including forex, JPY pairs, gold, and indices. Net R:R calculation that accounts for spread and commission costs. Customizable risk rules engine with optional trade blocking when rules fail. One-click execution with pre-filled lot size, SL, and TP. Two color themes (Dark and Light) with adjustable panel position and scale.
Input parameters
Color_Theme: 0 for Dark, 1 for Light. PanelCorner: Panel position (0=Top right, 1=Top left, 2=Bottom right, 3=Bottom left). PanelScale: 0=Small, 1=Medium, 2=Large. Default_Risk_Percent (default 1.0): Starting risk percentage from 0.1 to 10.0. QuickRisk_1 to QuickRisk_4: Values for the four quick-select buttons. Default_SL_Pips (default 30): Initial stop loss distance. Default_TP_Pips (default 50): Initial take prorit distance. Commission_Per_Lot (default 0): Commission per lot per side in account currency. Spread_Warning_Pips (default 3): Threshold for spread warning. EnableRiskRules: Toggle the full rules engine on or orf. Rule_MinRR (default 1.5): Minimum risk-reward ratio. Rule_MaxRiskPercent (default 2.0): Maximum allowed risk percentage. Rule_MaxLots (default 5.0): Maximum lot size. Rule_MinSL_Pips (default 10): Minimum SL distance. Rule_MaxSL_Pips (default 100): Maximum SL distance. Rule_MinTP_Pips (default 10): Minimum TP distance. Rule_BlockTrade: Disable BUY and SELL buttons when rules fail. MagicNowmber (default 202601): Order identification number. Slippage (default 3): Maximum slippage in points.
Recommended settings
Works on all instruments and timeframes. Set Commission_Per_Lot according to your broker (check the contract specifications for your instrument). Start with default risk rules enabled and adjust thresholds to match your trading plan. Use the LINK toggle to maintain your R:R when adjusting entry prices.
Important notes
This is an Expert Advisor that requires trading execution rights (Allow Algo Trading must be enabled). Lot calculation always rounds down to ensure you never exceed your target risk. The risk rules engine is a planning tool and doesn't replace sound risk management. Past trading results don't guarantee future performance.