Below is an add label that shows RVol in a chart i use. It is helpful but often covers up important information.
I saw posts here about Show and Global Color that can make a label with lighter or more translucent/transparent color.
I tried but could not get it to work. I cant do much more than cut and paste.
Could someone add the needed code to it? It would be greatly appreciated.
I am first time poster here. Was not sure if to append to related threads. Since they were old i posted new.
Many thanks.
input offset = 1;
input length = 21;
def ADV = Average(volume, length)[offset];
def rVol = volume / ADV;
#DefineGlobalColor("", Color.CURRENT);
AddLabel(yes, " RVOL: " + Round(rVol, 2), if rVol > 10 then Color.VIOLET else if rVol > 8 then Color.DARK_GREEN else if rVol > 6 then Color.GREEN else if rVol > 4 then Color.LIGHT_GREEN else if rVol > 2 then Color.LIME else if rVol > 1 then Color.PINK else if rVol < 1 then Color.BLACK else Color.BLACK);
I saw posts here about Show and Global Color that can make a label with lighter or more translucent/transparent color.
I tried but could not get it to work. I cant do much more than cut and paste.
Could someone add the needed code to it? It would be greatly appreciated.
I am first time poster here. Was not sure if to append to related threads. Since they were old i posted new.
Many thanks.
input offset = 1;
input length = 21;
def ADV = Average(volume, length)[offset];
def rVol = volume / ADV;
#DefineGlobalColor("", Color.CURRENT);
AddLabel(yes, " RVOL: " + Round(rVol, 2), if rVol > 10 then Color.VIOLET else if rVol > 8 then Color.DARK_GREEN else if rVol > 6 then Color.GREEN else if rVol > 4 then Color.LIGHT_GREEN else if rVol > 2 then Color.LIME else if rVol > 1 then Color.PINK else if rVol < 1 then Color.BLACK else Color.BLACK);