JP782
Active member
Is there a way to make one label provide different info??
For example Im using this to show when a cross happens but also when price closes over that cross. This results in two labels appearing on the screen. Is there a way to write it so when the cross happens the label comes up like it would, but should price close over, the label for that (plum)appears and the cross(black) turns off... if you follow what im saying
For example Im using this to show when a cross happens but also when price closes over that cross. This results in two labels appearing on the screen. Is there a way to write it so when the cross happens the label comes up like it would, but should price close over, the label for that (plum)appears and the cross(black) turns off... if you follow what im saying
Code:
def condCross1 = SMA > HiMA;
addlabel(condcross1, "5", color.black);
def condCross = CLOSE > SMA AND SMA > HiMA ;
addlabel(condcross,”5”,color.PLUM);
Last edited: