Announcement

Collapse
No announcement yet.

Question about Indicator Colors

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about Indicator Colors

    I had a question about finding out about what the color of a given indicator on the screen was at a given time.

    I had two thoughts about how to do this, but I have not been able to make any headway.

    1. I know that there are functions to set the Price bar colors using SetPriceBarColor, setcolorpricebars, and setbar, so I was thinking if there was a corresponding "get" function to one of these then I could read this from the screen.

    2. I could call the indicator which does the "coloring" of the price bar directly and then access the information. I have done something similar in the past, but in this case I do not have the
    source for the EFS and when I try to do the following I get null when I debugprintln the v1 variable.
    var v1 = efsExternal("paintmeredblue.efs",6,0xff0000,0x0000 ff);

    I am not sure if I am not doing something correctly or if they do not return the value of the current color. In either case, I am not sure how to find out what the color that the indicator is setting.

    Thanks,
    Brian
Working...
X