Snap chartbubbles to right margin


Category:
0
0

Hello Mr. Hahn,

I’m hoping you can help me out here with a tos chart study. I’ve made some changes, mostly just adding deviation lines and customizing colors. But for the life of me, I can’t figure out how to snap the chart bubbles to the right margin. Similar to how the price sticks to the right margin on a price level. Not sure how to send the complete script, but below is the line that I have. I got the study like this. Any help would be greatly appreciated. I may need some help on one more study after I get this one where I want. I am willing to make a donation for your wisdom.

Regards,

Joe

addChartBubble(isNaN(close[33]) and !isNaN(close[34]),

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on July 12, 2020 8:38 am
114 views
0
Private answer

When your code is too long to include in the body of the question you save it to a plain text file and include it as a file attachment. Too late for that now.

I believe you are asking how to plot a chart bubble on only the last bar of the chart.

If so, then this has already been posted:

https://www.hahn-tech.com/ans/print-value-in-right-expansion-area/

If you are trying to do something else you will need to explain things more clearly.

Edit: You also may want to check the solution in the following post. There is a way to display values in the price axis on the far right-hand side of the chart. I just didn't think of it until I tried to solve the question posted here:

https://www.hahn-tech.com/ans/vwap-on-price-axis/

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on July 12, 2020 11:31 am
0
Not sure of any better way to explain it. I would like the chartbubbles to snap to the right margin. Similar to how the price sticks to the right margin on a price level drawing. They are deviation lines, so if I adjust the chart, the chartbubbles will always be on the right margin of the chart. As it is now, the chartbubbles move horizontally with the chart, about 4 or 5 bars from the last bar. If you need the whole script, I will send it. Thank you
( at July 12, 2020 5:33 pm)
0
Did you read the post I linked in my answer and follow all the links like I explained in my answer? If you did, then you found out that placing a chart bubble in the "price range" is impossible. The solution I provide is the only solution.
( at July 12, 2020 6:55 pm)
0
I just updated my answer to include a link to another post where I was able to solve this.
( at August 5, 2020 10:40 am)