Day of the week coloured

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #11901 quote
    Nicolas
    Keymaster
    Master

    Are you sure you have only 1 indicator applied on price that color background?

    #11903 quote
    coddey
    Participant
    New

    Pretty certain. When the programme is first launched, the indicator is okay,  (a few errors). When scrolling through the instruments it all turns very messy with all sorts of days highlighted.

    See below. Current setup and current code. Perhaps the code is still incorrect?

    #12024 quote
    coddey
    Participant
    New

    HI Guys,

    anymore thoughts on this at all? Seems like a very simple indicator to build and have working.

    Does anyone have suggestions for alternative code to get this working?

    Really appreciate the help.

    #12025 quote
    Nicolas
    Keymaster
    Master

    Please tell me what symbol and I’ll try to give it a look today. Thanks.

    #12028 quote
    coddey
    Participant
    New

    Hi Nicolas,

    I presume you want to know what instruments I’m trying to apply this to?

    Full future on a range of exchanges. It’s important as it’s allowing me to see when data for the Commitments of traders report was collected and what day that data is first tradeable.

    See attached. Thanks again.

    #12032 quote
    Nicolas
    Keymaster
    Master

    This is the code I tested and it seems ok.

    a = dayofweek=2
    b = dayofweek=3
    
    if a then
     backgroundcolor(133,193,126,85)
    elsif b then
     backgroundcolor(223,109,20,85)
    else
     backgroundcolor(0,0,0) //black
    endif
    
    return

    But I saw some glitches too, not every-time though. Please tell me how it succeed on your side. Since 10.3 is still in Beta testing, maybe we have spotted here something to be fixed.

    #12042 quote
    coddey
    Participant
    New

    HI Nicolas,

    I think you’ve solved this thank you. I think the last command “Else” filling all the blanks in was needed to make this work correctly.

    Thanks again.

Viewing 7 posts - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.

Day of the week coloured


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
coddey @coddey Participant
Summary

This topic contains 21 replies,
has 4 voices, and was last updated by coddey
9 years, 5 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/17/2016
Status: Active
Attachments: No files
Logo Logo
Loading...