EA-41601 · Utility

NovaBarra

This is a new bar detection utility EA that monitors for the formation of new candles on the chart. It provides a template event handler that distinguishes between the first tick after attachment and subsequent new bar events. It does not open any trades or implement any trading strategy.

Open the interactive view (equity curve, symbol switch)

Key facts

CategoryUtility
RiskSafe
Rating★★☆☆☆
TypeUtility tool
TimeframesM1, M5, M15, M30, H1, H4, D1, W1, MN
IndicatorsiTime
AuthorDireito Autoral \x00A9 2022, Fernando M. I. Carreiro, Todos os direitos reservados

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 rather a new bar event detection utility template. Its core logic uses a static variable to store the current bar's timestamp, comparing the current bar time with the previous bar time to determine if a new bar has formed. When a new bar is detected, it further distinguishes between two scenarios: the first is when the EA is initially attached to the chart, where the bar may already be mid-formation rather than truly at the start of a new bar; the second is a normal new bar appearance. There are no entry conditions as this EA contains no entry logic whatsoever. Similarly, there are no exit conditions implemented. Position sizing and money management are entirely absent since this EA only provides an event detection framework without executing any trading operations.

Strengths

  • Provides a new bar detection template compatible with both MQL4 and MQL5
  • Correctly handles the edge case when EA is first attached and the bar is mid-formation
  • Clean code structure with detailed comments for easy understanding and extension
  • Uses static variables for efficient bar state tracking without global variables
  • Cross-platform compatible with both MQL4 and MQL5

Weaknesses

  • Only template code without any actual trading logic implemented
  • Lacks implementation examples for actions after new bar detection
  • No error handling mechanisms included
  • Does not support multi-timeframe or multi-symbol monitoring
  • No trading safety checks such as connection status verification

Possible improvements

  • Could be encapsulated into a reusable function or class for easy integration into other EAs
  • Add multi-timeframe new bar detection and implement a callback mechanism for new bar events
  • Provide more complete usage examples including demonstration of executing trading operations on new bar events

Risk assessment

Overall risk: Safe

  • This EA does not execute any trading operations, so there is no trading risk
  • As template code, using it in live trading requires supplementing complete trading logic and risk control measures

Evaluation scores

Code quality3.0
Strategy logic1.0
Risk management1.0
Robustness3.0
Innovation1.0
Documentation4.0
Overall2.2

Parameters

ParameterDefaultDescription
_SymbolCurrent symbolCurrent trading symbol (built-in variable)
_PeriodCurrent periodCurrent chart period (built-in variable)
WRONG_VALUE-1Invalid value marker for static variable initialization

Similar Utility EAs

Backtests are historical simulations and do not guarantee future results. Not financial advice.

Get the weekly Arena report

One email a week: ranking changes, new signals and new research. No spam; unsubscribe any time.