How to label pivot points on chart


0
0

Hi Pete, I hope all is well.  Can you show us how to label Pivot Points on the chart for Thinkorswim Desktop version?  Thank you in advance for your help!

Marked as spam
Posted by (Questions: 1, Answers: 2)
Asked on July 21, 2020 6:50 am
196 views
0
Private answer

You did not mention the name of a specific chart study or provide any source code for one of your own. So I will pick the one named "PivotPoints" that is included with Thinkorswim. The source code for this chart study is not available. So each plot must be referenced individually. I will demonstrate how to do this for the PP level pivot and you can work out how to apply this to the rest.

input showOnlyToday = No;
input timeFrame = {default "DAY", "WEEK", "MONTH"};
plot levelPP = PivotPoints(showOnlyToday, timeFrame).PP;
def lastBar = IsNaN(close[-1]) and !IsNaN(close);
AddChartBubble(lastBar, levelPP, "PP", Color.MAGENTA);

This places a magenta colored chart bubble displaying "PP" on the last bar on the chart at the PP pivot level.

Marked as spam
Posted by (Questions: 37, Answers: 4079)
Answered on July 21, 2020 8:27 am
0
Sorry, for not being specific. But once again thank you for the help, I really appreciate it! With you guidance, I was able to get it to work! Thank you!
( at July 21, 2020 12:25 pm)