FJD Lot Calculator MQL5
- Experts
- Version: 2.1
FJD Lot Calculator & Risk Manager is a modern, high-performance, on-chart trading assistant and risk management tool designed for MetaTrader 5. Whether you are trading Forex, Commodities (Gold/Silver), Crypto, or Indices, this tool ensures precise position sizing, instant risk calculation, and seamless order execution without ever leaving your chart.
Eliminate manual calculations and execution mistakes. With an interactive Stop Loss line, customizable risk steps, and a modern draggable interface, FJD Lot Calculator brings institutional-grade risk management right to your fingertips.
🌟 Key Features
-
Instant Dynamic Position Sizing: Automatically calculates the exact lot size based on your account balance/equity and the distance to your Stop Loss level.
-
Interactive Stop Loss Line: Click "SET STOP LOSS LINE" to drop a draggable line on your chart. Move the line anywhere, and the lot size and pip distance update instantly in real-time.
-
100% Smooth Draggable Panel: Easily reposition the control panel anywhere on your chart by simply dragging the header bar with your mouse.
-
Minimize / Maximize Functionality: Collapse the panel into a compact header bar with a single click (− / +) to keep your chart clean and uncluttered.
-
Customizable Risk Steps: Adjust your Risk Per Trade percentage effortlessly using the on-screen + and − buttons with your preferred precision step (e.g., 0.1%, 0.25%, 0.5%).
-
One-Click Trading with Safety Confirmation: Execute market BUY or SELL positions instantly with auto-attached Stop Loss. Includes an optional confirmation dialog to prevent accidental trades.
-
Pre-Trade Safety Engine: Built-in order validation checks Free Margin, Broker StopLevel, Min/Max Lot limits, and market execution mode before sending any order to prevent execution rejections.
-
Universal Multi-Asset Compatibility: Fully optimized for Forex, Gold (XAUUSD), Silver, Indices, Crypto, and CFDs. Automatically handles tick values and contract sizes across 3, 4, and 5-digit brokers.
-
Real-Time Market Info: Displays live Spread (in pips) and Stop Loss distance dynamically.
-
High Performance & Zero Lag: Written in clean, modular MQL5 object-oriented code (OOP) with zero delay, no system freezing, and light memory consumption.
🚀 How It Works
-
Attach FJD Lot Calculator to any chart.
-
Select your desired Risk Per Trade (%) using the + / − buttons or input settings.
-
Click SET STOP LOSS LINE to generate the interactive SL line on your chart.
-
Drag the SL line to your desired technical level (support, resistance, market structure, or swing high/low).
-
Watch the calculated Lot Size and Pip Distance update in real-time.
-
Click BUY or SELL to execute the trade instantly with your pre-calculated lot size and Stop Loss!
⚙️ Input Parameters
--- Risk & SL Settings ---
-
Initial Risk Per Trade (%): Sets your default risk percentage (e.g., 1.0%).
-
Risk Increase/Decrease Step (%): Determines the step size when clicking + or − buttons (e.g., 0.1%, 0.5%).
-
Default SL Line Distance (in pips): Initial placement distance for the Stop Loss line when drawn (e.g., 5.0 pips).
--- General Settings ---
-
Position Confirmation: Enable (CONFIRM_YES) or disable (CONFIRM_NO) the order confirmation popup dialog.
-
Slippage (in points): Maximum allowed price slippage for order execution.
-
Magic Number: Unique identifier for orders opened by this Expert Advisor.
--- UI Position ---
-
Panel Display X Position: Initial horizontal position of the panel on the chart.
-
Panel Display Y Position: Initial vertical position of the panel on the chart.
💡 Why Choose FJD Lot Calculator?
-
Perfect for Prop Firm Traders: Never breach daily or total drawdown rules by strictly enforcing your exact risk percentage on every trade.
-
No AutoTrading Required for Analysis: Can also be converted/used strictly as an analytical risk visualizer.
-
Clean & Modern UI: Designed with a professional Fintech aesthetic (Slate & Accent theme) with subtle shadows and clean typography.
-
Broker & Filling Mode Independent: Automatically detects broker execution modes (ORDER_FILLING_FOK, ORDER_FILLING_IOC, or RETURN) to guarantee execution reliability.
