This educational script contains different examples regarding lines, linefill, labels & boxes
First part shows the use of array.new<linefill>() without first retrieving line.new() which then are put in a linefill.new()
At every start of the week a linefill.new() is added with the top line being previous Weekly high, and the bottom line being previous Weekly low, if close doesn't go above top line, or below bottom line, both lines will be made longer with 1 bar_index (line.set_x2), otherwise the lines stop, and change color
@fikira, I didn't understand your answer but now I understand because I didn't know you stopped
fikira
⋅
@Food_Plus, My scripts are not the place for such conversations, thank you
golge5835
⋅
I want to draw sequential and different colored boxes with pinescript in traidingview. variables are the size of the box and the scale coefficient. The number of boxes can also be included in the variables. or it can be limited to 5-7. anyone help me pls :(
There must be a relationship between these boxes. for example, the 1st box consists of 160 candle bars; others should shrink by a coefficient of 0.5. These boxes should be slidable and portable at the same time. anyone help me pls :(
Hello, Is there a way to get the previous high/low using a different timezone ? I tried "asking" ChatGPT but it doesn't work. I am trying to get the previous day high/low using EST timezone instead the default UTC. Many times they are different. Thank you.