This article describes a reusable position sizing engine that separates risk policy from the conversion of risk into lots. It presents four policies: fixed fractional risk based on balance, a fixed cash amount, volatility scaling in which ATR informs stop…
Žinių biblioteka
Stratmill tyrimų agento parengtos knygų, straipsnių, mokslinių darbų ir kodo, kuriuos skaito mūsų DI agentai, santraukos ir pagrindinės mintys. Kiekviename puslapyje pateikiama nuoroda į originalą.
Ieškoti bibliotekoje
3,012 dokumentų
The article presents an MQL5 strategy based on Candle Range Theory’s accumulation, manipulation, and distribution phases. It defines an accumulation range from a candle on a chosen timeframe, then treats a breach beyond the range as potential manipulation.…
The article explains how to extend an MQL5 Expert Advisor so it can receive Telegram messages, parse updates returned by the Telegram API as JSON, interpret user commands, and send responses back through the chat. It describes preparing the MQL5 environment,…
The article outlines a prototype that connects Python, MetaTrader 5, and a hosted language model to analyze OHLCV candles and generate trade decisions. Its prompt asks the model to identify support and resistance from recent bars, assess price action at…
The article turns a basic moving average crossover Expert Advisor into a more reliable implementation by addressing common production failures. The starting EA checks for a crossover on each tick, uses fixed stop distances, and does not isolate its trades or…
The article explains why an automated strategy needs to distinguish broker server time from UTC and account for daylight saving time when it trades around market sessions. A one-hour server-clock shift can change which broker-time hour corresponds to a…
The article proposes linking weather in agricultural regions to related currency pairs: Australian conditions with AUDUSD, New Zealand conditions with NZDUSD, and Canadian prairie conditions with USDCAD. It describes collecting historical weather and quote…
The article describes a Forex system based on Chuvashov’s Fork, a pattern drawn from recent fractals. A main trend line uses two neighboring fractals, and a third helps form a lateral line; a break of that lateral line signals a possible trade against the…
This article outlines an MQL5 trading framework that filters raw swing highs and lows before treating them as meaningful market structure. Candidate swings are validated when they show a momentum-based break of structure, a strong displacement move, a…
The article explores combining Bollinger Bands with RSI to find mean-reversion trades. The baseline rules consider longs after price falls below the lower band with RSI oversold, and shorts after price rises above the upper band with RSI overbought. The…
This article extends an MQL5 administrator panel with controls intended to make chart interaction and messaging quicker. It describes minimize, maximize, and close buttons, including behavior for hiding and restoring the panel or removing its Expert Advisor.…
This installment explains how an MQL5 trading library can track account events on netting accounts and how their position behavior differs from hedging accounts. A hedging account can hold multiple positions per symbol, while a netting account maintains one.…
This article describes an MQL5 indicator that identifies rising and falling wedges from confirmed swing highs and lows. Its detection framework checks for multiple pivot touches on each boundary, compares the direction and relative steepness of the…
This installment develops a helper class for editing chart template files used inside an OBJ_CHART replay interface. The class opens an input template and either writes to a specified destination or creates a temporary copy. Callers register find-and-replace…
The article presents a way to review parameter-optimization reports by mapping three selected performance measures to color components. It describes parsing an optimization report, converting its string values into numeric fields, and assigning each pass a…
This article describes a configurable short-term breakout Expert Advisor built around swing structure, volatility expansion, and optional time filters. A bullish or bearish setup is identified from a three-bar swing point. Rather than entering immediately,…
The article compares fixed-lot sizing with two balance-linked approaches: position size proportional to account balance, and size proportional to its square root. It uses a single EURUSD Expert Advisor, left at default strategy settings, to illustrate how…
This article explains the Firefly Algorithm, a population-based optimizer inspired by fireflies moving toward brighter neighbors. Brightness represents objective-function quality, while attraction weakens with distance. Less attractive fireflies move toward…
The article explains the Gator Oscillator, derived from the separation and convergence of the Alligator indicator’s smoothed moving-average lines. It describes the oscillator’s bars above and below zero and uses whether each bar rises or falls to classify…
The article introduces Proximal Policy Optimization (PPO) as an actor-critic reinforcement learning method designed to limit how sharply a policy changes during training. It gathers state, action, reward, and action-probability data under the current policy,…
The article describes a simple way to estimate potential support and resistance levels by counting how many historical bars span each price. A script scans prices from the lowest low to the highest high across a selected history window, increments a count…
The article explains Competitive Swarm Optimizer (CSO), a population-based optimization method proposed as an alternative to particle swarm optimization when direct attraction to a global leader causes the population to lose diversity. Agents are randomly…
The article introduces hierarchical reinforcement learning as a way to divide trading decisions among levels, such as broad strategy selection and more local actions including entries, exits, risk control, and allocation. It presents potential benefits…
This installment describes adding event handling for graphical objects in a MetaTrader library. Its aim is to let an expert advisor respond to object changes through chart events instead of repeatedly polling object properties, which the article…