Color-Coding Logic (The Paint Rules)
The candles change colors depending on whether price momentum (measured by a fast 4-period EMA vs. the base EMA) agrees with the broader trend direction (zzDir):
XU_Candles_EMA_v5_12_test_JurikFlip.mq5
Signal 1 (Strong Bullish): Trend is Up (zzDir == 1) and Fast EMA
≥ Base EMA
→ Painted Blue.
XU_Candles_EMA_v5_12_test_JurikFlip.mq5
Signal 2 (Strong Bearish): Trend is Down (zzDir == -1) and Fast EMA
≤ Base EMA
→ Painted Red.
XU_Candles_EMA_v5_12_test_JurikFlip.mq5
Neutral / Disagreement:
In 3-color mode (CANDLE_3COLOR), conflicting candles default to White.
XU_Candles_EMA_v5_12_test_JurikFlip.mq5
In 4-color mode (CANDLE_4COLOR), conflicting candles take on the underlying trend's color tone (Green for an upward leg with weaker momentum, or Light Red for a downward leg with weaker momentum).
XU_Candles_EMA_v5_12_test_JurikFlip.mq5