支持中心 帮助文档 联系我们
📱 微信: 18391752892 | 💬 QQ: 3313198376 | ✈️ Telegram | 📧 fishfx123@gmail.com
EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34% EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34%

Daily Bar Number CFD

👤 作者: Vincent Jose Proenca

4.5 分

¥0.00

📌 版本: v1.0
📥 下载: 0
⭐ 评分: 4.5

📝 产品详情

Daily Bar Number CFD

作者Vincent Jose Proenca
版本v1.0
激活数0

indicator that numbers the bars (candles) in a custom trading session.
The indicator allows:

  • Defining the session start time (StartHour and StartMinute)

  • Displaying numbers only on odd bars (if AfficherUniquementImpairs is true)

  • Displaying numbers on the last N days (NbJours)

  • Customizing the color and font size of the text

The indicator will loop through the bars of the last N days and, for each day, start counting from the session start time.
It will display the bar number (starting at 1) below the bar.

We are going to use the OnCalculate function for MT5.

Steps:

  1. Clean up old labels at the beginning.

  2. Determine the start time for the analysis (now - NbJours days).

  3. For each day in the last NbJours days, set the session start time.

  4. Loop through the bars (from the oldest to the newest) and for each bar that is within the session of that day, assign a number.

  5. If AfficherUniquementImpairs is true, then only display odd numbers.


安全须知

本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。

EA 配置

交易品种XAUUSD
时间框架H1 (推荐)
推荐经纪商IC Markets, IC Trading
最低存款$300 / 0.01手

📸 截图预览