CHART_BRING_TO_TOP(GET)
This EA is a monitoring utility that periodically checks which chart window is currently active (on top) by iterating through all open charts and reading their CHART_BRING_TO_TOP property. It prints the symbol name of the active chart to the Experts log every 3 seconds. It does not open, close, or manage 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 does not contain any trading strategy; it is purely an informational monitoring utility. Its core logic resides in the OnTimer callback, which executes every 3 seconds and iterates through all open charts using the ChartFirst and ChartNext functions. For each chart, it calls ChartGetInteger to read the CHART_BRING_TO_TOP property, and if the value is true, it identifies that chart as the currently active window and prints the associated symbol name to the Experts log via the Print function. There are no entry conditions, exit conditions, position sizing, or money management logic since the EA does not perform any trading operations whatsoever. The only configurable behavior is the timer interval, which is hardcoded to 3 seconds in OnInit.
Strengths
- Clean and straightforward code logic that is easy to understand and modify
- Proper use of ChartFirst/ChartNext iteration pattern for reliable chart traversal
- Extremely low resource consumption since it only reads properties and prints to log
Weaknesses
- Timer interval is hardcoded to 3 seconds with no input parameter for user configuration
- Only outputs to the Experts log with no visual interface or sound alert, limiting practical usefulness
- The while loop upper limit of 100 is a hardcoded constant lacking flexibility and does not handle edge cases
- No OnDeinit function to clean up the timer resource
Possible improvements
- Add an input parameter to allow users to customize the polling interval
- Add OnDeinit with EventKillTimer for proper resource cleanup, and display active chart info on the chart visually instead of only printing to the log
Risk assessment
Overall risk: Safe
- The EA performs no trading operations, posing zero financial risk
- Missing OnDeinit timer cleanup may leave residual timer events when the EA is removed
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
TimerInterval | 3 | Timer interval in seconds for active chart detection frequency |
Similar Utility EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.