Exhaustive Binary Testing of Trade Condition Combinations
Summary
This document describes an MT5 expert advisor for evaluating combinations of entry and exit conditions. Each test sequence is represented by a binary index: values such as 1, 2, and 4 identify separate conditions, while their sums select combinations. Testing a range of indexes can enumerate every combination of the configured conditions. The tool exports performance results, and the document discusses metrics such as profit, drawdown, and trade count.
It warns that exhaustive searches can create many duplicate or rarely triggered setups, consume substantial computing time, and produce misleading results if conditions or tester settings are misconfigured. More entry conditions tend to reduce trade frequency; more exit conditions can keep positions open longer. It advises comparing profit factors only across setups with roughly comparable trade counts, and matching trade duration to the timeframe behind the signal. The author recommends checking promising configurations with more detailed tick testing. No universally successful setup is demonstrated, and a large search can invite overfitting or analysis paralysis.
Key ideas
- Binary indexes encode combinations of individual entry and exit conditions for systematic testing.
- Testing every combination can require substantial compute and produce duplicate or rarely triggered setups.
- Trade count, drawdown, and profit factor should be considered together when comparing configurations.
- Adding entry conditions generally reduces trade frequency, while adding exit conditions can extend holding time.
- Promising results should be checked with more detailed tick data, and the search should have a defined objective.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.