Strategy Design

Specify trading rules, architecture, position sizing and exposure assumptions. Examples are educational and do not imply guaranteed performance.

Trailing Stops in MQL5: Filter Positions and Respect Broker Constraints

Trailing Stops in MQL5: Filter Positions and Respect Broker Constraints

Technical revision: 1 October 2026 · Educational materialOn this pageManage only the positions you ownDefine activation, distance and minimum improvementUse the downloadable managerCheck constraints before modifyingCompare exits, not selected success storiesA trailing stop changes the requested exit level after price moves in favor of a position. It changes the distribution of exits; it does not prove that a strategy has an edge. Compare it with a fixed-stop baseline using the same entries, costs and validation periods. Manage only the positions you own Iterating over all account positions while using the chart symbol's prices can modify an unrelated trade. The example…
Read More
Risk Management in MQL5: Position Sizing and Broker-Valid Stops

Risk Management in MQL5: Position Sizing and Broker-Valid Stops

Technical revision: 1 October 2026 · Educational materialOn this pageEstimate entry-to-stop loss in account currencyRound down and reject oversize minimumsRound prices on the tick gridAccount risk is broader than one stopPosition sizing should translate an explicit loss estimate into a broker-valid volume. It should also know when no valid order fits the budget. A stop defines a requested exit condition; it cannot guarantee the realized loss when execution gaps or costs differ from the estimate. Estimate entry-to-stop loss in account currency Using a fixed pip value can fail across symbols, contract types and account currencies. The helper uses OrderCalcProfit at…
Read More
Position Sizing Methods: Fixed Lots, Fixed Fractional Risk and Drawdowns

Position Sizing Methods: Fixed Lots, Fixed Fractional Risk and Drawdowns

Technical revision: 1 October 2026 · Educational materialOn this pageStart with the exposure being controlledUnderstand drawdown recoveryInclude simultaneous exposuresTreat estimated edge cautiouslyBuild an auditable sizing experimentPosition size changes how a sequence of trading outcomes affects an account. It does not turn an unvalidated entry rule into a profitable one. Compare methods using the same trade sequence and clearly stated assumptions. Start with the exposure being controlled MethodWhat stays constantMain limitation Fixed lotsRequested volumeMoney exposure changes with stop distance, symbol and account equity. Fixed cash budgetEstimated account-currency loss to stopThe same amount becomes a larger share of shrinking equity. Fixed fractionalEstimated…
Read More
Building a Forex Trading System in MT5: A Practical MQL5 Checklist

Building a Forex Trading System in MT5: A Practical MQL5 Checklist

Technical revision: 1 October 2026 · Educational materialOn this pageWrite an executable specificationSeparate five responsibilitiesUse MQL5 indicator handles correctlyTreat broker specifications as inputsDesign validation before optimizationChoose the next concrete taskA trading system is a set of rules, data assumptions and execution behavior. A checklist helps make those parts observable. No combination of features makes a system “perfect” or guarantees profitability. Write an executable specification Describe the symbol universe, timeframe, signal calculation, information available at decision time, entry policy, exit policy and account constraints. “Buy when momentum is strong” is not precise enough. State the exact inputs, comparisons and bar shifts.…
Read More
Trading-System Architecture: From Research Rule to Observable Execution

Trading-System Architecture: From Research Rule to Observable Execution

Technical revision: 1 October 2026 · Educational materialOn this pageMake the decision pipeline explicitKeep observation time separate from chart timeTrack intent, request and confirmed stateUse explicit limits and failure policiesLog enough to answer “why?”Keep research and deployment evidence distinctThe useful test of a trading-system architecture is whether you can explain a decision and reproduce a failure. Start with a small, traceable pipeline. Add infrastructure when a concrete requirement justifies it. Make the decision pipeline explicit Verified observations → signal evaluation → exposure and risk checks → broker-valid request → server response and transaction reconciliation → updated state and audit log…
Read More