Movable Textbox


Category:
0
0

Hi Pete,

Is it possible to create a code for the textbox drawing tool so the text box keeps progressing forward as the new candles form? I am trying to input the text in the text box from which I can easily recognize the existing studies settings in the chart when I scroll through the grid having similar studies with different settings. For example for your study – Chart_Macd_Rsi if I want to keep one chart with the overbought oversold settings at the live bar and another with closed bar and so on. I hope I have provided the information to understand what I am looking for. If there is a limitation in TOS for this to do, I would appreciate any other solution if you come up with.

Thank you,

Shaishav

RESOLVED
Marked as spam
Posted by (Questions: 49, Answers: 62)
Asked on November 9, 2019 4:51 pm
65 views
0
Private answer

I can address this portion of your question:

Is it possible to create a code for the textbox drawing tool so the text box keeps progressing forward as the new candles form?

No, we cannot create or manipulate any drawing tools on Thinkorswim. We can display chart bubbles but on text boxes. The chart bubble can be coded to display on a specific bar of the chart.

The following code will plot a chart bubble on the last bar of the chart. The text displayed in the chart bubble can be adjusted through the study input named "bubble text".

input bubbleText = "This displays in the chart bubble";
AddChartBubble(!IsNaN(close) and IsNaN(close[-1]), high, bubbleText, Color.WHITE, yes);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on November 9, 2019 6:58 pm
0
Hi Pete, I am getting an error- Incompatible parameter:bubbletext.
( at November 9, 2019 10:11 pm)
0
Sorry about that. I was trying to do that without testing it first. I misplaced a couple of the parameters. I have corrected it now.
( at November 10, 2019 8:26 am)
0
This is perfect when I want to scroll through the charts in a grid with similar study settings to differentiate at a first glance. Thank you Pete.
( at November 10, 2019 12:16 pm)