Quote from iluv2trade:
Criteria1 is to paint the Strong bar, Criteria2 for the Weak bar.
Criteria1(close > h[1] and (h > h[2] or h > c[2]) and (h > h[3] or h > c[3])),
Criteria2(close < l[1] and (l < l[2] or l < c[2]) and (l < l[3] or l < c[3]));
where: c=close, h=high, l=low.... [1] means a bar ago, [2] 2 bars ago and so on... no brackets means current bar
Unless there's an opposite bar eg. if a Strong (3bar) bar was painted, other strong bars are ignored until a Weak bar is signaled, the weak bar will be painted, then all Weak bars are ignored until a Strong bar appears - thus the reversals...
All other bars are painted darker as normal candlesticks except if open = close -> that's white.
I can't explain it any more than that - hope this helps...
EDITED WITH MORE INFO...
i