Skip to content
All library documents

XOSignal Trend-Following with Position Scaling

Article MQL5 code base

Summary

The document describes an Expert Advisor that opens positions from XOSignal indicator arrows confirmed at bar close. It then adds to a position when the most recent deal has gained more than a configurable point threshold. The number of additions and the last deal’s price and volume are recorded in the trade comment, allowing the system to track its scaling state.

The example reports a EURUSD test on the eight-hour timeframe for 2015, using the EA’s default inputs and no stop loss or take profit. It provides no performance figures in the text, so the test reference alone does not establish profitability. The approach is trend-following and increases exposure after favorable movement, which can amplify losses if the trend reverses. The document also explains how the indicator is embedded as a resource in the compiled EA, but that packaging detail does not describe trading performance.

Key ideas

  • The EA opens a position when a colored XOSignal arrow appears as a bar closes.
  • It scales position volume after the latest deal exceeds a configurable profit threshold.
  • Trade comments store scaling count and details of the latest deal.
  • The cited EURUSD test used an eight-hour timeframe and omitted stop loss and take profit.
  • The document gives no numerical test results, so it does not establish strategy performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.