Skip to content
All library documents

Separate Long and Short Systems for a SilverTrend Expert Advisor

Article MQL5 code base

Summary

This document describes an Expert Advisor that runs two SilverTrend-based trading systems, one for long positions and one for short positions. Each side has separate settings, including its own identifier, trade sizing mode, and controls for permitting entries and exits. The systems are designed to operate independently, allowing their parameters to differ rather than assuming market behavior is symmetric.

The suggested workflow is to test one side at a time by disabling the other, then configure and test the second side separately. The document mentions testing on USDJPY at a six-hour interval over 2016 and refers to charts showing trades and results, but the figures themselves are not included in the text. Stop loss and take profit were not used in the described tests, limiting what can be inferred about risk management. Operation also depends on having the compiled SilverTrend indicator available to the platform.

Key ideas

  • The Expert Advisor separates SilverTrend long and short trading into independent systems.
  • Each side has its own trade identifier, sizing inputs, and entry and exit switches.
  • The author recommends testing each direction separately before configuring both together.
  • The described USDJPY test used a six-hour interval during 2016 and omitted stop loss and take profit.
  • The text references charts but does not provide enough evidence to assess the reported results.

Tags

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