Auto Pivot Points Support & Resistance Indicator for ThinkorSwim


Active member
2019 Donor

I've also added crossed above and same results

I got it figured out...Needed to to pivot high line...Not pivot high
Last edited by a moderator:


New member
There are different pivots in TOS, Woodies, Persons, Pivot Points. Which is the most accurate and reliable for intraday trading? Is there any other Pivot studies in the community that are the best to use? I trade strictly divergence against pivots and S/R levels and scalp for 2 pts on ES.


Hi, I don't know if this is the right thread. Is there the possibility of marking a support and resistance that is the maximum and minimum of the previous day as well as the maximum and minimum of the post market and the pre market? and that these supports and resistances extend only until the next day and once the session is over they begin to mark the new highs and minimums so that they appear the next day and so on ...
many thanks


Hello, download this indicator that about the maximum of the previous day ... I want to put in the column of the whatchlist when the price crosses the support or resistance, but it constantly gives me an error, can someone help me?

# High Previous Day

declare hide_on_daily;

def active = GetTime() >= RegularTradingStart(GetYYYYMMDD());
plot PH = if active then high(period = AggregationPeriod.Day)[1] else Double.NaN;

plot PL = if active then low(period = AggregationPeriod.Day)[1] else Double.NaN;
# End High Previous Day


Well-known member
2019 Donor
With TOS it seems the more complicated indicators you add such as support resistance pivots and or fibs the chart becomes more limited with the display. I mean those lines become harder to see and the charts tend to coil up so to speak when compared to other charting platforms. I don't know if there is a way to help fix this except for unchecking fit chart? So, I'm wondering if this has to do with memory management and or chart size my charts are projected on a large monitor and run off a laptop. Are these limitations due to running off a laptop vs a desktop?

An example chart that appears to handle it well but it is a web-based trading view chart I guess better understanding the why is what I'm after.

Last edited by a moderator:


New member
Is there a way to plot all of the support and resistance trendlines as they would have appeared at the current time of each bar? For example, I've been using thinkorswims OnDemand to go back in time and view where it would have plotted the support/resistance lines but I want to be able to see it all on the same chart, without OnDemand.

Also, is it possible to make the 'n' value a variabe? For example, if the bar is between 9:45am and 10:35am, n=2, if between 10:30 - 12:30pm n=4 and 12:30 - 3:30pm, n=9?
Last edited:


I'm looking for a multi time frame version of the Pivot Array by Mobius. posted here. Does anyone have something like that or able to convert it?
It's beyond my ability. My plan is to plot daily pivots on the 1 minute or 5 minute chart.



New member
Thinking about common price action, I commonly see prices quickly bounce off of support and resistance and others that stagnate around those areas before failing to break through. I'm curious as to how the quicker changes in price (first derivative - price velocity) around support and resistance areas may indicate the strength of a resistance or support line.

Some sort of indicator that takes in the support and resistance lines ( that are already plotted from a different thinkScript study) and uses potentially a moving average derivative on a minute scale in order to measure the strength of the resistance and support. This could be shown as its own chart or potentially as a bubble next to the price.

I have been trying to code this in think script as well as create a scanner for stronger support and resistance lines as I think it has huge potential for the size of various price breakouts but have been struggling in creating a full fledged indicator. Any thoughts, ideas, or even code to collaborate with is much appreciated.

Similar threads