Dear Bro...Jackson Doh wrote: Sat Nov 12, 2022 4:55 pm I looked into the code and saw that some of the conditional statements were not defined precisely enough. I have made some adjustments and it seems to work in line with expectations. Replacement Candle and Histo indicators below.
I am reposting the associated dashboard here. In making the dashboard I renamed the histo but it is the same as above with the better code now added. Both the G-chan_Jma-DB BT and GCJMA_DB_Histo indicators need to be in the same indicators folder for the dashboard to work although the histo indicator does not need to be loaded.
gcjma v2.jpg
G Chan JMA slope trend candles.ex4
GCJMA_DB_Histo.ex4
G-chan_Jma-DB BT.mq4
any change to update the green bar and red bars as per below concept!
3 colours with ranging dash board
UP TREND
if the bar breaks/touch 6 upper channel red line -GREEN BARS - (UP TREND)
if the bar turns down and touch/breaks <=3 red lines green line - Light Green ( RANGE UP)
if the bar turns down and touch/breaks >=4 red lines green line - Orange Red ( RANGE DN)
DOWN TREND
just opposite