Pass Wait then Pass
A tick-counting utility EA that implements a two-phase cycle: it counts ticks up to a configurable limit, then waits for another configurable number of ticks, before resetting and repeating. It displays the current count and wait values on the chart via Comment() but does not execute any trades.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
This EA is not a trading strategy but a tick-counting and waiting utility framework. The strategy concept is a two-phase cycle driven by tick frequency: Phase 1 (Pass phase) accumulates ticks until the 'count' parameter is reached, then stops executing user code; Phase 2 (Wait phase) accumulates 'wait' number of ticks as a cooldown period; after the wait completes, both counters reset and the cycle repeats. There are no entry conditions for trades whatsoever, as no trading signal generation logic exists. Exit conditions are similarly absent since no positions are ever opened. Position sizing and money management are completely unimplemented — the EA only provides a counting skeleton for users to insert their own custom logic. Overall, this is a template/scaffold code designed to let users execute code blocks at specified tick intervals with a built-in cooldown mechanism.
Strengths
- Clean two-phase cycle framework with clear and understandable logic
- Configurable count and wait parameters provide good flexibility
- Automatic reset mechanism ensures continuous cycling without manual intervention
- Real-time counter display via Comment() aids debugging and monitoring
- Simple code structure makes it suitable for beginners to learn and extend
Weaknesses
- Contains no trading logic whatsoever — it is merely an empty shell template
- Lacks new bar detection, potentially causing multiple executions within the same bar
- No error handling mechanism — no protection against counter overflow or abnormal values
- Frequent Comment() refreshes may cause chart flickering and impact performance
- The wait phase code block is empty, making it easy for users to misunderstand execution timing
Possible improvements
- Add new bar detection (isNewBar) to prevent repeated logic execution within the same bar
- Use timer (OnTimer) instead of tick counting for more stable and predictable execution intervals
- Add input parameter validation to prevent setting count or wait to 0 or negative values which would cause logic anomalies
Risk assessment
Overall risk: Safe
- The EA does not execute any trading operations — no financial risk
- Missing parameter validation — setting count or wait to 0 could cause infinite loops or invalid behavior
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
count | 50 | Upper tick limit for the counting phase |
wait | 50 | Upper tick limit for the waiting phase |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.