In the image above, I have two indictors that work as well without issues. I would like to plot them on a market analyzer window. However, I am having issues getting this to plot the way I want.
The indicator I am referring to is the one in the price action window. I have a unplotted variable that stores a value with the following logic.
bvalue[0] = 0
.. if close[0] < redline[0] bvalue[0] = -1
if close[0] > grenline[0] bvalue[0] = 1
if bvalue[0] = bvalue[1] then bc[0] = bc[0] + 1 else bc[0] = 0
For the market analyzer cell color, I want to plot as follows ...
if bValue[0] = 0 - yellow
if bvalue[0] = 1 - green
if bvalue[0] = -1 - red
AT THE SAME TIME .... I also want to plot the number value in box (bc[0])
I can plot one or the other in the same column cell but not in the same cell. The only way I can make it work right now is to plot it in two columns. Is there a way that I could detect inside the indicator if its applied to a market analyzer window and write some custom code to control either the cell value or background color? I am trying to avoid doing this in two columns,
thanks
Comment