colorbetween colours and opacity and return selection

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #181825 quote
    PhilstradingPhilstrading
    Participant
    Senior

    Hi all

    Unsure if this should be 2 posts but it realates to one indicator coding…

    I have multiple returns on an indicator and wish to have most unselected by default but am amiss to find a reference making it possible… Any pointers? Sample code below for reference.

    ———————————————————————————-

    When looking to shade in certain areas using the colorbetween code the colour is atrocious and I’m unable to find a format to customise it. Opacity and colour choices required… or do  need to find another coding solution? Sample code below for reference.

    Is there a way to do (R,G,B,opacity)?

    Any pointers welcomed..

    Cheers

     

     

    return myBullishdefaultDarkGreen1 coloured (40,160,0) style (line,3) as "1 mins Bullish default (Dark Green)", myBullishdefaultDarkGreen2 coloured (40,160,0) style (line,3) as "2 mins Bullish default (Dark Green)" 
    // above return code
    
    
    //below colorbetween code
    If myBullishdefaultDarkGreen2>myBullishconfirm1LightGreen2 then
    COLORBETWEEN(myBullishdefaultDarkGreen2,myBullishconfirm1LightGreen2,"lightgreen")
    endif
    If myBearishdefaultRed2<myBearishconfirm1Orange2 then
    COLORBETWEEN (myBearishdefaultRed2,myBearishconfirm1Orange2, "red")
    endif
    
    #181833 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    No pointers needed (indeed they are not supported).

    Opacity, or transparency, is all you need as you can see at https://www.prorealcode.com/topic/switch-indicators-on-off/#post-173048.

    #182603 quote
    PhilstradingPhilstrading
    Participant
    Senior

    No pointers needed (indeed they are not supported).

    Opacity, or transparency, is all you need as you can see at https://www.prorealcode.com/topic/switch-indicators-on-off/#post-173048.

    Seems its the format that was making it not possibe..

    colorbetween (myBullishdefaultDarkGreen2 , myBullishconfirm1LightGreen2, barindex mod 40,160, 0, 55) // though you can leave out the barindex mod I think…  different formats can confuse things

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

colorbetween colours and opacity and return selection


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by PhilstradingPhilstrading
4 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 11/18/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...