nothingness99
New member
Hi,
I am trying to draw a horizontal line on the UPPER chart that will use as the buy/sell signal (the color code of each square dot is coordinated with each bar's price action). How can I code this for my upper study? Thanks
Sorry I did not make it clear. Okie, I want to line up the squares (paintingstrategy.squares) horizontally like the picture below. The squares line will be nearby the labels and stay there throughout the 1min/1day time frame. I can archive this in the lower study as the picture. However, I could not do that in the study for the upper chart. The upper bound is just the top chart area. The logic for the color of each square, I already have in my code. I just want to bring this square line to the upper chart but I don't know how to make that line stay fixed (regardless of the high, close). Thank you
I am trying to draw a horizontal line on the UPPER chart that will use as the buy/sell signal (the color code of each square dot is coordinated with each bar's price action). How can I code this for my upper study? Thanks
Sorry I did not make it clear. Okie, I want to line up the squares (paintingstrategy.squares) horizontally like the picture below. The squares line will be nearby the labels and stay there throughout the 1min/1day time frame. I can archive this in the lower study as the picture. However, I could not do that in the study for the upper chart. The upper bound is just the top chart area. The logic for the color of each square, I already have in my code. I just want to bring this square line to the upper chart but I don't know how to make that line stay fixed (regardless of the high, close). Thank you