Hard coding colour zones – v10.3 & v11

Forums ProRealTime English forum ProBuilder support Hard coding colour zones – v10.3 & v11

Viewing 6 posts - 1 through 6 (of 6 total)
  • #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……

    #141049
    #141065

    Hi Roberto,

    Thanks for the response.

    Is there a way to display horizontal background colour areas, rather than vertical ones ?

     

     

    #141075

    In 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

     

    #141079

    Many thanks for those links Nicolas.
    I’ll need to spend some time to get my head around V11 arrays and how they might be used to colour charts, but hopefully not vastly different to C/C++

     

    Regards,

    Bob

    #141095

    No 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.

Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login