Hey, if it's not too much I'd ask your help for this study.
I'd like to see the value of the wicks (high and low values of a candle) painted on the chart for the last 3 candles.
Goat Mobius came up with these lines:
input n = 3;
def x = barNumber();
def x0 = if(isNaN(close[-1]) and !isNaN(close), x, x0[1]);
def xn = highestAll(x0) - (n-1);
def wick = high - Max(close, open);
plot data = if(x >= xn, wick, double.nan);
data.SetPaintingStrategy(PaintingStrategy.Values_Above);
Unfortunately, it looks like this : https://ibb.co/RjvC1qR
I like very much the numbers on top (avoiding labels).
A) But I see only one bar wick as correct, the first one.
B) Also, I'd like to display the down wicks too.
Thank you all )
I'd like to see the value of the wicks (high and low values of a candle) painted on the chart for the last 3 candles.
Goat Mobius came up with these lines:
input n = 3;
def x = barNumber();
def x0 = if(isNaN(close[-1]) and !isNaN(close), x, x0[1]);
def xn = highestAll(x0) - (n-1);
def wick = high - Max(close, open);
plot data = if(x >= xn, wick, double.nan);
data.SetPaintingStrategy(PaintingStrategy.Values_Above);
Unfortunately, it looks like this : https://ibb.co/RjvC1qR
I like very much the numbers on top (avoiding labels).
A) But I see only one bar wick as correct, the first one.
B) Also, I'd like to display the down wicks too.
Thank you all )