Re: Rijay's System of Moving Averages

201
every candle is colored by the ZigZag trend, and the EMAs only set how strong the color is.

Condition Candle color
ZigZag up and EMA 4 ≥ EMA 54 Strong blue (confirmed uptrend)
ZigZag down and EMA 4 ≤ EMA 54 Strong red (confirmed downtrend)
ZigZag up but EMAs disagree Light blue (uptrend, pullback or early turn)
ZigZag down but EMAs disagree Light red (downtrend, pullback or early turn)
No ZigZag pivot yet White


Re: Rijay's System of Moving Averages

203
based on xard's indicator

How the filter works- ema per 5 gives arrows frequently then higher ema settings on macd crossovers

Red arrow (lower-timeframe MACD crosses below 0): it shows only if the candle it sits on is the strong red, C’200,50,100'.
Green arrow (MACD crosses above 0): it shows only if that candle is the strong blue, C’50,150,255'.
In every other case the arrow is hidden. That includes white candles and the light red (255,160,160) and light blue (160,200,255) candles, which are not the strong colours you named.


Re: Rijay's System of Moving Averages

207
MT5 with option of jurik macd center line fixation

When the Jurik MACD line crosses zero, the ZigZag swing of the finished segment is fixed and a new leg starts. The highest high of a positive segment becomes the top, and the lowest low of a negative segment becomes the bottom. The candle colours follow from that. This is the same code path your existing MACD centre-line fixation uses, so the leg and candle behaviour matches it exactly.
These users thanked the author rijay for the post:
stond

Re: Rijay's System of Moving Averages

208
use it in jurik macd center line fixation mode


Each Jurik MACD centre-line crossing fixes one pivot, the same ones your ZigZag already uses. A top is fixed after a positive segment and a bottom after a negative one.
Each new top is compared with the previous top and labelled HH or LH. Each new bottom is compared with the previous bottom and labelled HL or LL.
The label sits at the pivot candle, above for tops and below for bottoms. HH and HL are green, LH and LL are red.
The corner text uses the newest top and bottom together:
HH + HL shows UP TREND.
LH + LL shows DOWN TREND.
Anything else (HH + LL, or LH + HL) shows “NO CLEAR TREND”. You can turn this off with TrendShowMixed.
These users thanked the author rijay for the post:
stond

Re: Rijay's System of Moving Averages

209
How it decides the text in jurik macd fixation mode

The trend comes from the existing structure logic in Jurik MACD centre-line fixation mode. HH + HL counts as an up trend and LH + LL as a down trend.
Blue means colour index 1 (50,150,255) or the light blue fill (160,200,255). Red means index 2 (200,50,100) or the light red fill (255,160,160).

Structure Candle Text
HH + HL blue or light blue new up swing
HH + HL red or light red retracement in up trend
LH + LL red or light red new down swing
LH + LL blue or light blue retracement in down trend

When the structure is mixed (for example HH + LL), there is no text.

New inputs (group “Swing status text”)

Corner, X distance and Y distance from the corner. The default is the upper left corner, at Y=55 so it sits under the existing trend text.
Font size, the four texts and their colours.
SwingUseClosedBar: false (default) reads the forming candle, so the text can change during the bar. True reads the last closed candle, which is more stable.

The label only works with ZigZag mode set to Jurik MACD, and it is removed when the indicator is unloaded.