Trend Execution Planner: Market Regime and Risk Analysis Panel
Info
The Trend Execution Planner: Market Regime and Risk Analysis Panel is a Expert Advisor for MetaTrader 5 that trend execution planner - regime and risk paneladditional screenshotstrend execution planner is a free, open-source metatrader 5 chart utility designed for traders to assess market conditions and determine appropriate trade sizing for hypothetical trades before manual order placement or system activation. IMPORTANT NOTE: This tool functions as an Expert Advisor solely to access live account and symbol specifications.
Usage
This tool is typically used for trend following strategies across multiple currency pairs.
Platform
This Expert Advisor works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Experts folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Trend Execution Planner: Market Regime and Risk Analysis Panel
1. Installation: Open the "File" menu, select "Open Data Folder," navigate to MQL/Experts, paste your file, and restart the terminal.
2. Activation: Drag the EA from the Navigator onto a chart, ensure "Allow live trading" is checked in the Common tab, and verify the AutoTrading button is green.
3. Optimization: Right-click your chart, choose "Expert List," click "Properties" to adjust inputs, and save your preferred setup as a set file for future use.
4. Maintenance: Regularly check the "Experts" tab in the terminal window to monitor trade logs and potential execution errors.
Frequently Asked Questions
Q: Why is my EA not opening trades? A: Check the "AutoTrading" button, ensure "Allow live trading" is enabled, and verify your broker allows automated trading on your account type.
Q: Can I run multiple EAs on one chart? A: No, each chart can only host one active EA; however, you can open multiple charts for different currency pairs to run several EAs.
Q: What does the "smiley face" icon mean? A: A smiley face in the top-right corner of the chart indicates the EA is successfully running; a frowny face means it is disabled.
What this tool does
Trend Execution Planner - Regime and Risk PanelAdditional screenshotsTrend Execution Planner is a free, open-source MetaTrader 5 chart utility designed for traders to assess market conditions and determine appropriate trade sizing for hypothetical trades before manual order placement or system activation.
Typical Use Case
This Expert Advisor excels in trend following on MetaTrader 5.
Compatible Platform & Setup
This Expert Advisor works on MetaTrader 5. Place the file in the MQL5/Experts folder and restart the terminal.
Description & Settings
Related: Supertrend Scalper with Breakeven Win Rate Panel - another powerful expert for MetaTrader 5 traders.
Trend Execution Planner - Regime and Risk PanelAlso recommended: WaveMaster Pro EA: Automated Execution for WaveMaster Oscilloscope - similar expert with strong performance on MetaTrader 5.
Additional screenshots
Trend Execution Planner is a free, open-source MetaTrader 5 chart utility designed for traders to assess market conditions and determine appropriate trade sizing for hypothetical trades before manual order placement or system activation.
IMPORTANT NOTE: This tool functions as an Expert Advisor solely to access live account and symbol specifications. It is strictly non-trading and will never initiate, modify, close, or send any order requests.
KEY FEATURES
- Transparent trend-condition score derived from price/MA direction, MA slope, ADX, and Kaufman's Efficiency Ratio.
- Classification of the current market condition as strong uptrend, strong downtrend, or mixed/neutral.
- Display of the current spread as a percentage of ATR, with a configurable execution cost limit.
- Generation of hypothetical long and short trade plans based on current Ask/Bid, an ATR-based stop loss, and a defined reward/risk target.
- Calculation of broker-normalized lot size in account currency using OrderCalcProfit.
- Calculation of required margin using OrderCalcMargin, accompanied by a free margin check.
- Alerts if the broker's minimum lot size exceeds the selected monetary risk.
HOW THE CONDITION SCORE IS CALCULATED
score = direction x 100 x efficiency ratio x min(1, ADX / 50)
The score is influenced by the direction of price relative to a moving average and its slope. The Efficiency Ratio assesses the directness of price movement. A positive or negative score indicates the current market condition and is not a forecast, entry signal, or trade recommendation.
RISK-PLAN METHODOLOGY
The calculator utilizes a selected percentage of equity or balance to define the monetary risk. The stop distance is determined by the greater value between the selected ATR multiple and the broker's minimum stop distance. It calculates the risk per lot at that stop distance, considering the symbol's contract specifications and account currency conversion. Volume is rounded down to the nearest valid volume step, and margin is checked for the exact calculated volume.
USAGE GUIDELINES
1. Attach the tool to any chart and timeframe.
2. Configure the trend-model and risk-plan input parameters to align with your trading strategy.
3. Utilize the panel as a checklist for market conditions and execution parameters. All trading decisions should be made independently.
SAFETY FEATURES
This tool is designed with safety as a priority. It contains no direct trading functions like CTrade or OrderSend, nor does it modify existing positions or chart lines. It exclusively reads market and account data and creates its own temporary panel objects on the chart for display.
You may also like: Stormbreaker ADX - Supertrend and DMI Trend EA for MT5 - excellent alternative for expert users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property strict
input group "Trend-condition model"
input int InpMAPeriod = 50;
input ENUM_MA_METHOD InpMAMethod = MODE_EMA;
input int InpADXPeriod = 14;
input int InpEfficiencyPeriod = 20;
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.