I am going crazy trying to figure out how to do this....its probably very simple, but I am am stuck!!!
I want to plot volume as a histogram, and show in the cursorlabel volume and another data item which I will just call x.
So, as part of my script, I am plotting the esignal-type basic volume histogram, with the histogram color being either red or blue depending on the open() and close() values.
Maybe I am not well-versed enough with Java, but originally, everytime I had returned volume() after changing BarFgColor (depending on Open() and Close() ), the cursorlabel holding my "Volume" would also change color. So, I thought it would be necessary to return volume TWICE. Once for the histogram plot, and once for the cursorlabel.
So now, my cursor labels look fine because they never change color (they are defined as 1 and 2). But the histogram (defined as 0) still keeps showing up in the cursorlabel as multicolored garbage.
How do I get rid of this???? or rather, what am I doing wrong?
Another similar problem with my script is that volume (I presume my second volume that I return), is being plotted as a line.... I want to turn this off as well.
I guess my overall question is when returning values, how do I make sure they only get plotted or only end up in the cursor label, depending on what I want???
I want to plot volume as a histogram, and show in the cursorlabel volume and another data item which I will just call x.
So, as part of my script, I am plotting the esignal-type basic volume histogram, with the histogram color being either red or blue depending on the open() and close() values.
Maybe I am not well-versed enough with Java, but originally, everytime I had returned volume() after changing BarFgColor (depending on Open() and Close() ), the cursorlabel holding my "Volume" would also change color. So, I thought it would be necessary to return volume TWICE. Once for the histogram plot, and once for the cursorlabel.
So now, my cursor labels look fine because they never change color (they are defined as 1 and 2). But the histogram (defined as 0) still keeps showing up in the cursorlabel as multicolored garbage.
How do I get rid of this???? or rather, what am I doing wrong?
Another similar problem with my script is that volume (I presume my second volume that I return), is being plotted as a line.... I want to turn this off as well.
I guess my overall question is when returning values, how do I make sure they only get plotted or only end up in the cursor label, depending on what I want???
Comment