Attachments forums

List of attachments posted on this forum.


All files on forums: 164049

Re: 🔺 MT5 XARD - Simple Trend Following Trading System

horizon202, Fri Dec 19, 2025 3:16 am

Hello Xard,

can you tell me what is the "Energy Low" mean? which indicator control this function?

Update: I think this is the ADR
xard777 wrote: Fri Dec 19, 2025 1:53 am

Here is the latest update for everyone's perusal.
As usual, you have the full source code -- the Xard Universe is Open.
Enjoy
Best,
Xard777
Based on the code, the **Energy** levels (Low, Normal, High, Extreme) are determined by the **absolute percentage move** of the current day's price change relative to the 20-day average range (ADR). Here's the breakdown:

## **Energy Level Thresholds:**

| Energy Level | Condition (Absolute % Move) | Color (Default) |
|--------------|-----------------------------|-----------------|
| **LOW** | < 50% | Lime Green |
| **NORMAL** | ≥ 50% and < 100% | Gold |
| **HIGH** | ≥ 100% and < 150% | Orange |
| **EXTREME** | ≥ 150% | Red |

## **How It's Calculated:**

1. **Daily Price Change in Pips**:
`dailyPipDiff = (closePrice - openToday) * pipsize`

2. **20-Day Average Range (ADR) in Pips**:
`adrAvg` = average of daily ranges over 20 days, converted to pips

3. **Percentage Move**:
`adrPercent = (100 / adrAvg * dailyPipDiff)`
This shows how much of the average daily range the current move represents.

4. **Energy Determination**:
The **absolute value** of `adrPercent` is used to determine the energy level:
- If price has moved less than 50% of the average daily range → **LOW** energy
- 50-99% of average range → **NORMAL** energy
- 100-149% of average range → **HIGH** energy
- 150%+ of average range → **EXTREME** energy

## **Visual Display:**
- The energy level appears as text (e.g., "ENERGY NORMAL")
- The color changes based on the energy level
- Positioned to the right of the large price display on the chart

## **Example:**
- If the average daily range is 100 pips and today's move is 45 pips → 45% → **LOW** energy (Lime Green)
- If today's move is 120 pips → 120% → **HIGH** energy (Orange)

This provides a quick visual indicator of whether the current day's price movement is relatively small or large compared to recent volatility.
All files in topic