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.
2 users thanked author for this post.