yoyo! im trying to get this NQ100 breadth indicator to print all of its values as positions numbers on the histogram to save space and just all around look more clean. The code is calculating a ratio and there for when the volume flips to the negative side, the historgram flips negative and takes up more space, harder to compare values etc.. Heres the code I'm working with .
input market = {default NASDAQ};
def UVOLQ = close(“$UVOL/Q”);
def DVOLQ = close(“$DVOL/Q”);
#Nasdaq Breadth ratio
plot NASDratio = if (UVOLQ >= DVOLQ) then (UVOLQ / DVOLQ) else -(DVOLQ / UVOLQ) ;
AddLabel(yes, Concat(Round(NASDratio, 2), ” :1 NQ”), (if NASDratio >= 0 then Color.green else Color.red));
nasdratio.assignvalueColor(if nasdratio>nasdratio[1] then createcolor(25,75,125) else createcolor(95,95,95) );
-->nasdratio.assignvalueColor(if nasdratio>nasdratio[1] and nasdartio>0 then color.red else color.white; <-- example
Ideally I'd want all of the positive volume to be blue/white (increasing decreasing) and all the negative values red/white.. but all displayed as position values.
Any help would be greatly appreciated. Muchos gracias
input market = {default NASDAQ};
def UVOLQ = close(“$UVOL/Q”);
def DVOLQ = close(“$DVOL/Q”);
#Nasdaq Breadth ratio
plot NASDratio = if (UVOLQ >= DVOLQ) then (UVOLQ / DVOLQ) else -(DVOLQ / UVOLQ) ;
AddLabel(yes, Concat(Round(NASDratio, 2), ” :1 NQ”), (if NASDratio >= 0 then Color.green else Color.red));
nasdratio.assignvalueColor(if nasdratio>nasdratio[1] then createcolor(25,75,125) else createcolor(95,95,95) );
-->nasdratio.assignvalueColor(if nasdratio>nasdratio[1] and nasdartio>0 then color.red else color.white; <-- example
Ideally I'd want all of the positive volume to be blue/white (increasing decreasing) and all the negative values red/white.. but all displayed as position values.
Any help would be greatly appreciated. Muchos gracias