A new candle or bar forms. - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources


The bot can detect the opening of new candles on any set time frame, making it easier to run one-time codes, place trades and call other functions. The code is written in the OnTick() function.
PERIOD_CURRENT is the time frame you want to detect new candle formation, you can change it to your preferred time frame.
Attachment download
📎 new_bar_formation.mq5 (2.06 KB)
Source: MQL5 #57849
A new candle or bar forms. - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 resource usage and screening suggestions
A new candle or bar forms. - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 resources are MT5 EA related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.
Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based on titles or short-term profit descriptions.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •