Line at every whole dollar


Category:
0
0

Hi,

 

I was wondering if it’s possible to have a study that plots a line on every whole dollar value on the chart.

 

Thank you

Marked as spam
Posted by (Questions: 4, Answers: 0)
Asked on April 9, 2022 5:03 pm
71 views
0
Private answer

On the current version of Thinkorswim, chart studies are only able to display plots. Chart studies are not able to create or modify drawing tools. Which would be required in order to do what you requested.

You can add a horizontal plot on any chart using just one line of code:

plot lineOne = 100;

This will plot a horizontal line at a price of 100 across the entire chart. If you want the chart to display two different lines at different price levels you will need to add a second plot statement and assign it a different value than shown in the example above.

If you want to display 100 horizontal plots on the chart you will need to add 100 separate and unique plot statements to the chart study.

There is another way to handle this. Which is to turn on the chart grid through the chart settings:

Chart Settings --> Appearance --> Gird

This will display dotted lines of the color you select across the chart. But it will also add vertical lines as well.

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on April 10, 2022 8:41 am