colorbetween colours and opacity and return selection

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #181825 quote
    Philstrading
    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
    robertogozzi
    Moderator
    Master

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

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 Philstrading
4 years, 2 months ago.

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