JKEFAdvancedModel

JKEFAdvancedModel — Volatility-Adaptive Trend Breakout Trading System

Overview

JKEFAdvancedModel is a fully automated Expert Advisor for MetaTrader 5. On the selected timeframe it adapts to market volatility to follow the trend and trade breakouts.
The system evaluates the state of closed bars only, so signals are not revised by an unfinished bar. Once a direction is confirmed, the robot can enter with a market order or place a stop order at a defined distance from the current price and wait for breakout confirmation, trailing that pending order while it remains unfilled. Only one position is held per cycle. There is no position adding, no averaging down, and no grid or martingale logic.

Trading Logic

State detection.​ Price volatility is measured first: the stronger the volatility, the faster the moving average tracks price; the calmer the market, the smoother the average. The average then receives a momentum-weighted smoothing step to produce a trend baseline. A recent deviation percentile is calculated above and below the baseline. A close above the upper deviation percentile sets the long state, and a close below the lower deviation percentile sets the short state. States are updated on completed bars only. The signal timeframe is defined by InpTF and may differ from the chart timeframe.
First entry.​ After loading or after pressing Start, if the current symbol has no position and no pending order from this system, the robot reads the current signal direction. When a direction is defined and permitted, it opens a market position immediately with the initial stop loss attached. When the direction is neutral, it keeps waiting until a defined direction appears.
After a position is closed.​ When a position ends — by stop loss, by trailing stop, or manually — the robot records the close time, waits for the configured number of seconds, and then places a stop order in the direction of the current signal: a buy stop for long and a sell stop for short, at the configured distance from the current market price.
Pending order management.​ While a stop order is waiting, the robot keeps comparing it with the current signal:
  • if the signal direction flips, the pending order is deleted and a new one is placed in the opposite direction;
  • if the direction is excluded by the trade direction filter, the pending order is deleted and the wait timer restarts;
  • if price moves in the favorable direction, the pending price follows it — a buy stop moves down and a sell stop moves up — so the order trails the market instead of staying fixed.
A filled pending order becomes an open position.
Position management.​ While a position is open, all unfilled pending orders are removed and the stop loss is maintained according to the trailing stop parameters: the trailing stop activates once profit reaches the trigger distance, keeps the configured distance from the current price, and moves only in the favorable direction.
Exit.​ No fixed take profit is used. Exits are produced by the initial stop loss, by the trailing stop, or by the Close All button on the panel.

Risk Management

  • Fixed lot size with one position per cycle. No adding, no averaging, no hedging-style recovery.
  • Every entry carries an initial stop loss at the configured distance in points; a value of zero means no stop loss is attached.
  • Optional trailing stop with separate trigger and distance parameters; setting either to zero disables the feature.
  • Free margin is calculated before each order request. If free margin is insufficient, no order is sent, an entry is written to the log, and a cooldown period starts to avoid repeated failed requests.
  • The filling mode supported by the symbol is detected automatically, with fallback retries when needed. Market orders and pending orders are handled separately.
  • Trading sessions and symbol trade modes are checked, so no requests are sent while the market is closed and a cooldown is applied to reduce unnecessary error messages.
  • Lot size is normalized to the symbol minimum, maximum, and step to avoid server rejections caused by precision.

On-Chart Panel

The chart shows three buttons — Start, Stop, and Close All — plus a status line.
  • Start​ enables automated trading. If there is no position, the first entry is attempted according to the current signal. Market-closed and insufficient-funds cooldowns are cleared.
  • Stop​ stops new entries. Open positions are not affected and the trailing stop keeps running.
  • Close All​ closes positions opened by this system on the current symbol, deletes pending orders, and stops automated trading.
The status line shows running or stopped state, signal timeframe, permitted direction, lot size, confirmation mode, initial stop loss, trailing trigger and distance, pending distance, wait time, and the current phase: market closed, insufficient funds, waiting for first entry, in position, pending order, waiting for pending order, or flat.
Button group placement (one of four chart corners), horizontal and vertical offset, button width and height, and font size are all configurable.

Recommended Operating Conditions

  • Symbol: instruments with good liquidity and stable spreads, such as major currency pairs, liquid crosses, precious metals, and major index CFDs. Verify on a demo account first.
  • Timeframe: the robot can be attached to any chart; the signal timeframe is set by InpTF, M5 by default.
  • Account type: both netting and hedging accounts are supported.
  • Account size: lot size and stop loss are user-defined, so derive the lot size from the maximum loss you are willing to take per trade. With the default 0.01 lot and a 500-point initial stop loss, an account balance of at least 500 USD or the equivalent is generally suggested; with low leverage or instruments with a large point value, use a larger balance or a smaller lot size. This is a capital-tolerance suggestion only and is not a performance expectation.
  • Environment: use an account with stable execution and low latency, and keep the terminal online on a VPS.

Input Parameters

Trade Parameters

Parameter
Default
Description
InpTF
PERIOD_M5
Timeframe used for signal calculation; may differ from the chart timeframe
InpTradeDirection
TRADE_DIR_BOTH
Permitted direction: both, long only, or short only
InpLots
0.01
Fixed lot size, normalized to symbol rules
InpStopLoss
500
Initial stop loss distance in points; 0 means no stop loss
InpTrailTrigger
200
Profit required to activate the trailing stop, in points
InpTrailDistance
100
Distance kept between the trailing stop and current price, in points
InpWaitSeconds
10
Seconds to wait after a position is closed before the next pending order
InpPendingDistance
500
Distance of the stop order from the current market price, in points
InpMagic
20267777
Order identifier used to separate this system from other programs
InpSlippage
30
Maximum accepted deviation for order sending, in points

Filling Mode Settings

Parameter
Default
Description
InpAutoDetectFilling
true
Detect the filling modes supported by the symbol automatically
InpManualFilling
ORDER_FILLING_FOK
Filling mode used when automatic detection is disabled
InpFillRetryMax
4
Maximum number of filling mode retries

Startup Option

Parameter
Default
Description
InpAutoStart
true
Start trading immediately after loading; shared with the panel Start button

Interface

Parameter
Default
Description
InpBtnCorner
BTN_CORNER_RL
Chart corner for the button group
InpBtnX
10
Horizontal offset from the selected corner, in pixels
InpBtnY
10
Vertical offset from the selected corner, in pixels
InpBtnW
70
Button width in pixels
InpBtnH
25
Button height in pixels
InpText
9
Button font size

Installation and Quick Start

  1. Install the product from the Market or the Navigator; it appears in the Experts\Market folder.
  2. Open a chart of the target symbol and attach the robot.
  3. Set lot size, initial stop loss, trailing stop, pending distance, and signal timeframe in the Inputs tab.
  4. Make sure AutoTrading is enabled in the terminal and that the robot name with a smiley icon appears in the top-right corner of the chart.
  5. Keep InpAutoStart set to true for an immediate start, or press Start on the panel.
  6. Press Stop to halt new entries, or Close All to close positions and delete pending orders.

Testing Recommendations

  • Download complete history for the symbol and test with real or custom spreads in the Strategy Tester.
  • Run the robot on a demo account first to confirm pending order behavior, trailing stop behavior, and log output.
  • When running on several symbols in one account, use a separate chart per symbol and consider separate order identifiers to keep records clear.
  • Before changing the lot size, estimate the maximum loss per trade as initial stop loss in points multiplied by point value multiplied by lot size.

Limitations and Notes

  • The robot manages only positions and pending orders on the current chart symbol that carry its own order identifier. Manual positions and orders from other programs are not affected.
  • No take profit target is used; how much profit is given back depends on the trailing stop parameters.
  • There is no built-in news filter, session filter, spread filter, maximum holding time, or daily loss limit.
  • The lot size is fixed; there is no automatic risk-percent sizing, so adjust it manually when the account size changes.
  • The terminal must stay online. No requests are sent during disconnection, and the state after reconnection depends on the positions and orders that exist at that moment.
  • Pending orders and stop loss modifications are involved, so actual fill prices depend on spread, slippage, and liquidity.

Risk Notice

Automated trading does not remove market risk. Results obtained on historical data do not represent future results, and demo account results may differ from live account results. This product does not guarantee any profit and is not investment advice. Set lot size and stop loss according to your own risk tolerance and test thoroughly before using a live account. Trading results obtained with this product remain the responsibility of the user.

Frequently Asked Questions

The robot did not open a trade right after starting. Is that expected?
Yes. If the signal direction is neutral at startup, the robot waits until a defined long or short state appears.
What happens to open positions after pressing Stop?
Stop only halts new entries. Open positions remain and the trailing stop continues to run.
Can it be used on several symbols at once?
Yes. Attach it to one chart per symbol. Separate order identifiers are recommended to keep records clearly separated.
A pending order has been waiting for a long time. What should I do?
The pending price follows the market when price moves in the favorable direction. If the signal direction flips or the direction is filtered out, the order is deleted and rescheduled according to the current rules.
Why does the log show an insufficient funds message?
Free margin is checked before each request. When it is insufficient, no order is sent, the event is logged, and a cooldown begins. Reduce the lot size or add funds.

Altri dall’autore
JKTopHedge
Shi Yuan Wang
JK-Top Hedge — Two-Sided Hedged Grid EA for MetaTrader 5 Overview JK-Top Hedge is an Expert Advisor for MetaTrader 5. It places a Buy Stop above the current price and a Sell Stop below it at the same time, building two grid lines on either side of the market. When one pending order is filled, the EA places the next one further away, and the cycle repeats. Because long and short positions exist at the same time, a floating loss on one side can partly be offset by the other. The EA closes or reduc
Trend Reversal Probability Overview Trend Reversal Probability is an analytical indicator for MetaTrader 5. It does not open, close or manage trades. Its purpose is to describe one specific property of the market in numbers: how long the current directional state of a smoothed momentum oscillator has already lasted, and how unusual that duration is compared with the same measurement on previous occasions. The indicator runs in a separate window. On every bar it updates the duration of the curren
FREE
TrendReferenceLine — Adaptive Trend Line with ATR Channel and Auto Trade Levels Short description: ​ An adaptive trend line indicator that switches color with trend direction, marks confirmed reversals with arrows, and automatically plots entry, stop loss and three R-multiple targets on the chart. Type: ​ Trend-following technical analysis indicator (not an automated trading robot). What it does In trend trading, three questions matter most: has the direction changed, where does the stop go, and
FREE
Trendfollowingline (ATR Based Trend Following Indicator) Overview Trendfollowingline is a trend following indicator drawn in the main chart window. It uses the Average True Range (ATR) as a measure of market volatility and plots a band around the price: while the direction is up, the band is placed below the price and moves upwards; when the direction turns down, the band switches above the price and moves downwards. An arrow marker is drawn on the band each time the direction changes. The indic
FREE
Overview QuantifiedTrends is a MetaTrader 5 indicator that runs in a separate chart sub-window. It describes momentum conditions through three calculation layers: Primary QQE layer: an RSI-based structure that uses smoothing and the smoothed RSI's own variation to build adaptive upper and lower bands and a primary QQE trend line. Statistical envelope layer: Bollinger Bands applied to the deviation of the primary QQE trend line from the 50 midline, used to determine whether primary momentum readi
FREE
Deviation Trend Profile Overview Deviation Trend Profile is a MetaTrader 5 chart indicator that combines three visual layers in a single chart window: a moving average with momentum-based coloring, deviation bands calculated from volatility, and a horizontal distribution profile drawn to the right of the current price. The indicator is an analytical tool. It does not open, modify or close trades, and it is not a complete trading system. It is designed to help the user observe trend direction, mo
FREE
RSI Support Resistance Signals Platform: MetaTrader 5 RSI Support Resistance Signals adds zone coloring and signal labels to the standard RSI. The indicator does not execute trades. Signals: Sell: RSI is in the overbought zone and turns down, or RSI is in the resistance zone and a bearish candle with an upper wick is detected. Buy: RSI is in the oversold zone and turns up, or RSI is in the support zone and a bullish candle with a lower wick is detected. Each signal can show a user-defined Engli
FREE
HubDynamicTrendLine This indicator identifies strict pivot highs and lows based on N bars to the left and right (default 15), connecting consecutive pivots of the same type to build a dynamic channel with upper and lower boundaries. Key Features Pivot Connections : Consecutive pivot highs and pivot lows are connected with solid trend lines, forming a visible channel structure. Slope Projection : When the price difference between two consecutive pivots of the same type is at least one 200-period
FREE
RSICloud
Shi Yuan Wang
RSI Cloud — RSI Dual Moving Average Cloud Indicator This indicator calculates RSI in a separate window, applies fast and slow moving averages to the RSI values, and displays the relative position of the two averages as a filling cloud. It also provides an optional raw RSI line, fixed 70/50/30 reference levels, and arrow markers when the fast and slow RSI averages cross. The indicator is for analysis and signal filtering only; it does not place trades. How it works Wilder RSI is calculated from
FREE
Inverse Probability Distribution — Pivot Density and K-Means Clustering Indicator Platform: MetaTrader 5 Overview This indicator is a technical analysis visualization tool for MetaTrader 5. It identifies confirmed pivot highs and lows on historical bars, groups pivot prices with K-Means clustering, and draws an inverse distribution profile on the right side of the chart. The profile shows the density of historical pivot prices at different price levels. The indicator does not generate trading s
FREE
MA Valuation Fluctuations measures how far the current price stands from its moving average. The deviation is expressed in units of dispersion and then compressed by a hyperbolic tangent into a fixed range from -1.0 to +1.0. The indicator is drawn in a separate window and can be used as a context filter next to a trend following or a mean reversion approach. What the indicator shows For every bar the indicator compares the selected price with a moving average in logarithmic terms. Because the r
FREE
High Time Candlestick Chart Visualize the current higher-timeframe candle directly on your lower-timeframe chart. This indicator projects the OHLC data of a selected higher timeframe ​ (M15, H1, H4, D1, or W1) onto your current chart as a graphical candlestick, offset to the right of the live price area. It helps you keep the bigger-picture candle structure in view without switching timeframes. Features Graphical HTF candle : Body, upper wick, and lower wick drawn as chart objects, colored by bu
FREE
Trend Pressure Oscillator Trend Pressure Oscillator is a separate-window analytical indicator for MetaTrader 5. It evaluates buying and selling pressure across multiple timeframes to help identify potential exhaustion points and market regime shifts. This tool does not generate trading signals automatically and does not execute trades. It is designed to be used as part of a broader technical analysis approach. Functionality Multi-range pressure analysis using Williams %R over three periods (Pul
FREE
Dual Period Filter — Adaptive Coppock Curve for MT5 Overview The Coppock Curve is built from the sum of a long and a short rate of change, smoothed afterwards, and is used to observe the direction and strength of medium-term momentum. This indicator extends the classic calculation in two ways. First, the price source passes through an optional adaptive filter before the momentum is calculated. Nine filter types are available: None, SMA, EMA, RMA, Double WMA, Triple VWMA, HMA, LLAMA and Kalman.
FREE
EF Percentage Channel A trend-state indicator that combines volatility-adaptive averaging, an Ehlers nonlinear filter, and statistical percentile bands into a single, self-adjusting channel. Overview The indicator builds an adaptive trend baseline on the chart and wraps it with statistical percentile bands. When price moves above the upper band, the market is flagged as bullish; below the lower band, bearish; inside the channel, the previous state is retained. The trend line, channel bands, cand
FREE
Intraday Spark Chart Overview Intraday Spark Chart is an MT5 indicator for intraday analysis. It converts the current price change of a symbol into a percentage of the daily opening price and plots the result in a separate subwindow. Every trading day starts again from the zero line, so each day is drawn as a separate segment and the intraday move of the current day can be observed directly. The indicator is a data visualization tool. It does not generate trading signals and does not provide inv
FREE
Adaptive MACD - R² Based Adaptive MACD Indicator Overview Adaptive MACD is an innovative MetaTrader 5 indicator that improves upon the traditional MACD. By introducing the Pearson correlation coefficient to calculate the R² value of price trends, this indicator can adapt to market conditions and dynamically adjust its sensitivity. It helps traders capture trends more effectively while filtering out market noise. How It Works Traditional MACD uses a fixed difference between fast and slow EMAs. Ad
FREE
MACandleApprox — Moving-Average Approximate Candle Indicator MACandleApprox is a custom indicator that, on the main price chart, applies a selected type of moving average to the open, high, low, and close price series respectively, and replots them as "approximate candles". It does not modify the original candlesticks; instead, it overlays a smoothed candle view based on moving averages, helping traders observe the smoothed price movement and directional changes more intuitively. The indicator s
FREE
# MASignalPanel — Multi-MA Signal Panel with Trend Filter ## Overview MASignalPanel is an all-in-one moving-average signal indicator designed for MetaTrader 5. It combines up to three moving averages (SMA, EMA, SMMA, LWMA) with four trade signal modes — Cross, Breakout, Pullback and Channel — and adds a higher-timeframe trend filter line (default EMA240) to keep you on the right side of the market. A fully interactive control panel lets you change MA type, MA count, periods, s MA indicator, movi
FREE
ZigZag Trader EA - Intelligent ZigZag Trading Assistant Introduction ZigZag Trader EA is a fully automated trading assistant based on the ZigZag indicator. It intelligently identifies previous highs and lows of the ZigZag indicator, combined with an advanced risk management system, to provide you with precise trading signals and automated trade execution. Whether you are a novice or experienced trader, ZigZag Trader EA can help you simplify trading decisions and achieve stable trading performa
Fibonacci Confluence Suite Short description Fibonacci Confluence Suite is a chart-window indicator for MetaTrader 5. It builds a Fibonacci grid from confirmed swing highs and lows, marks the levels where projections from earlier swings overlap, and adds a Golden Pocket zone, Fibonacci time zones, touch statistics and a compact status panel. All levels are calculated from closed bars only. Overview Drawing retracement levels by hand usually means three separate steps: finding the swing, pulling
MACandleApproxPro — Advanced MA Candle Reconstruction & Multi-Dimensional Market Structure Indicator Overview MACandleApproxPro ​ is a comprehensive technical analysis tool designed for professional traders. It breaks through the limitations of traditional moving averages by reconstructing MA data into "MA Candles" ​ through complex algorithms. This unique visualization filters out market noise, allowing you to examine price trends, momentum shifts, and critical market structures from a more
SweepReversalMap — Indicatore di mappatura delle zone di inversione dopo sweep di liquidità Panoramica SweepReversalMap è un indicatore personalizzato basato sul Price Action, progettato per identificare eventi di «Liquidity Sweep» (sweep di liquidità) nel mercato e mappare potenziali zone di inversione dopo il reclaim del prezzo. L’indicatore è adatto a qualsiasi strumento e timeframe. Logica principale Rilevamento dei punti swing: in base allo Swing Length impostato dall’utente, vengono ident
JKTaurus
Shi Yuan Wang
JK-Taurus Expert Advisor A grid-based scaling EA driven by trend and signal confirmation. Overview JK-Taurus is a fully automated trading system designed specifically for the MT5 platform. It integrates multi-timeframe trend analysis, signal confirmation, and a dynamic grid-based position-building strategy, aiming to capture sustained profit opportunities during trending market conditions. The EA features an intuitive visual dashboard, allowing users to monitor account status in real-time and in
SR Power Channel — Support & Resistance Power Channel Indicator Overview SR Power Channel is a main-chart visual indicator built on price extremes and ATR. It locates the highest high (resistance) and the lowest low (support) within a configurable lookback window, extends those two levels to the right, and wraps them into ATR-based channel bands. The indicator also counts bullish and bearish bars inside the window and marks the moments when price breaks above or below the channel bands with dia
Adaptive filtering trend Overview Adaptive filtering trend is a multi-layer signal filtering indicator for the MetaTrader 5 platform, built on the Coppock curve. The indicator computes a long-period and a short-period Rate of Change (ROC) of the price, sums them, and smooths the sum with a Weighted Moving Average (WMA) to obtain the Coppock curve. A set of independently switchable filters is then applied to screen the signals, and bullish or bearish crossings are marked on the main chart throug
JKEFtrendMartingale — Volatility-Adaptive Trend-Following Martingale Trading System Overview JKEFtrendMartingale is a fully automated Expert Advisor for MetaTrader 5. On the selected timeframe it adapts to market volatility to follow the trend and trade breakouts. After a losing trade it increases the lot size of the next trade according to the configured rule, and returns to the initial lot size once profits have absorbed the accumulated loss. The system evaluates the state of closed bars only,
Filtro:
Nessuna recensione
Rispondi alla recensione