How do you code colour between two Bollinger Bands
Forums › ProRealTime English forum › ProBuilder support › How do you code colour between two Bollinger Bands
- This topic has 6 replies, 3 voices, and was last updated 4 years ago by Bard.
-
-
05/09/2020 at 11:23 PM #130813
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.
1234567lag = ROUND((period-1)/2)data = (close + (close-close[lag]))ZLEMA = exponentialaverage[period](data)BolUp = SZLEMA+STD[period]*devBolDn = SZLEMA-STD[period]*devBollMid = SZLEMACheers,
05/09/2020 at 11:31 PM #130814Don’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.
05/09/2020 at 11:41 PM #13081705/10/2020 at 9:42 AM #130845Before 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).
1 user thanked author for this post.
05/21/2020 at 4:25 PM #13263605/21/2020 at 4:37 PM #13263805/23/2020 at 10:09 AM #132930IG 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.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on