K
No big problem, you dont need to know the colour, the open/close values dictate which is which 'colour'
...
if Open[2]<Close[2] // is 'up' bar, e.g. 'blue'
else // is down bar, e.g. 'red'
...
if Open[1]<Close[1] // is 'up' bar, e.g. 'blue'
else // is down bar, e.g. 'red'
FWIW
-BB-
K
No big problem, you dont need to know the colour, the open/close values dictate which is which 'colour'
...
if Open[2]<Close[2] // is 'up' bar, e.g. 'blue'
else // is down bar, e.g. 'red'
...
if Open[1]<Close[1] // is 'up' bar, e.g. 'blue'
else // is down bar, e.g. 'red'
FWIW
-BB-
Oh shit,
I'm really blind because of not seeing this obvious thing.
Thank you for quick answering
K.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi folks,
I want to detect wether the color of a candle with a shift of 2 in the timeseries is different than the color of the candle with shift 1.
It was said, that somewhere in this forum the problem has already ben dicussed, but I searched for hours now and couldn't find it.
Any Help would be great
Kantor