BacktestRookies

Support & Resistance

This indicator detects large swings/pivots in historical price action to highlight tops and bottoms which might act as future levels of support or resistance. The code by default detects the last 3 significant swing highs and the last 3 swing lows. It then places lines on the chart to highlight those levels.

For a full overview of the indicator and code commentary visit the backtest-rookies (.com) website.

Example

Remove from Favorite Scripts Add to Favorite Scripts
Very good. I was just looking on how to plot infinite horizontal lines for supports and yours is the only one! ;) thx
+2 Reply
@rtugui, Same here. In case you didn't get it figured, the reason for the horizontal line is the trackprice=true parameter. The limitation it will only extend the line for the current series, as soon as one of the series' data points in invalidated, the extended line goes away and is replaced by the new data point. For my indicator, it will still show the line for during the time period it applied (d/w/m etc), similar to how the historical pivots still show in the pivots indicator. But still working on making those lines permanent.
Reply
rtugui kurtsmock
@kurtsmock, yes, yes, got it;) thx
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out