BardParticipant
Master
Hi, I’ve searched and searched but can’t find any simple way to add a colour zone between two manually coded Bollinger Bands? I would also like to be able to control transparency too so the colour doesn’t obscure the candlesticks or overwhelms and second Bollinger band series.
lag = ROUND((period-1)/2)
data = (close + (close-close[lag]))
ZLEMA = exponentialaverage[period](data)
BolUp = SZLEMA+STD[period]*dev
BolDn = SZLEMA-STD[period]*dev
BollMid = SZLEMA
Cheers,
Don’t bother to code it. Just return the values in your indicator and then use the ‘configure’ indicator window and add a colour zone between the values and then save the settings as default settings. Then even if you export the ITF file those will be fixed settings for the indicator and anyone who imports it will have the same colour zones.
If you are drawing segments then it is slightly more difficult and you will need to draw vertical lines between the segments to add some basic colour.
BardParticipant
Master
Before v11, we were used to code the background color with DRAWCANDLE or DRAWBARCHART, a simple trick but it works well. With v11, we can now change the color of a graphical object and therefore create real color zones with codes, examples: https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/#post-118817 (rectangular zones), or https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/#post-118818 (with triangle when the zone is not a square or a rectangle).
BardParticipant
Master
Probability cones, those look interesting! Do you know when v11 is available to IG clients Nicolas?
I think that I can guess Nicolas’ answer…… ‘Ask IG!’
BardParticipant
Master
IG Index emailed me this response in regard to the launch of V11 for IG clients:
Thanks for your email and we unfortunately can’t provide a timescale of when this could possibly be but due to going through extraordinary times there has been delays of projects so it is likely to happen later in the year.