📝 产品详情
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:
-
Clean up old labels at the beginning.
-
Determine the start time for the analysis (now - NbJours days).
-
For each day in the last NbJours days, set the session start time.
-
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.
-
If AfficherUniquementImpairs is true, then only display odd numbers.
安全须知
本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。
EA 配置
| 交易品种 | XAUUSD |
| 时间框架 | H1 (推荐) |
| 推荐经纪商 | IC Markets, IC Trading |
| 最低存款 | $300 / 0.01手 |
📸 截图预览