JOSHTHEBANKER
Member
I want this to display how many tick up or down until close of bar
This is for a range bar chart. It would be helpful to see to place orders ahead of market?
# START CODE
input TickSymb = "$TIKSP";
input ADSymb = "$ADSPD";
def TICKS = if !IsNa
N(close(TickSymb)) then close(TickSymb) else TICKS[1];
def AD = if !IsNaN(close(ADSymb)) then close(ADSymb) else AD[1];
AddLabel(1, " Tick = " + TICKS, if TICKS < 0 then Color.Pink else Color.Cyan);
AddLabel(1, " AD = " + AD, if AD < -350 then Color.Pink else if AD > 350 then Color.Cyan else if between(AD, -250, 250) then Color.White else Color.Yellow);
# END CODE
This is for a range bar chart. It would be helpful to see to place orders ahead of market?
# START CODE
input TickSymb = "$TIKSP";
input ADSymb = "$ADSPD";
def TICKS = if !IsNa
N(close(TickSymb)) then close(TickSymb) else TICKS[1];
def AD = if !IsNaN(close(ADSymb)) then close(ADSymb) else AD[1];
AddLabel(1, " Tick = " + TICKS, if TICKS < 0 then Color.Pink else Color.Cyan);
AddLabel(1, " AD = " + AD, if AD < -350 then Color.Pink else if AD > 350 then Color.Cyan else if between(AD, -250, 250) then Color.White else Color.Yellow);
# END CODE