Hard coding colour zones – v10.3 & v11
Forums › ProRealTime English forum › ProBuilder support › Hard coding colour zones – v10.3 & v11
- This topic has 5 replies, 3 voices, and was last updated 4 years ago by Nicolas.
-
-
08/07/2020 at 9:38 AM #141041
Good morning,
I have an indicator that needs some colour zones added to make the indicator easy to view – without them it’s hard to read.
Is it possible to hard code colour zones into the probuilder code, either in v10.3 or v11 ?
If not, is there a way to export them within the GUI to allow others to import ?
Many thanks for any help……
08/07/2020 at 10:18 AM #141049You can use BACKGROUNDCOLOR like https://www.prorealcode.com/prorealtime-indicators/supertrend-sar-background-indicator/
08/07/2020 at 1:09 PM #14106508/07/2020 at 2:40 PM #141075In v10.3 we are used to use DRAWCANDLE (or DRAWBARCHART) in order to color zones, not perfect though.. With PRT v11, we can now set a color for the background of graphical objects.
example with V10.3: https://www.prorealcode.com/prorealtime-indicators/cloud-indicator/
examples with V11: https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/#post-118817
https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/#post-118818
08/07/2020 at 3:24 PM #14107908/07/2020 at 4:11 PM #141095No array is not needed to color the chart 🙂 In the above link you will find codes that use array, but the DRAWRECTANGLE or DRAWTRIANGLE are still using barindex/price x,y coordinates. To color the background of a graphical object you just have to add the COLOURED instruction at the end of the code line.
-
AuthorPosts