Patternsmart

Swing high low support & resistance, by Patternsmart.com

The Swing indicator will plot dot lines that represent the swing points based on the swing length input(number of bars to the left and right of the swing point).

Swing highs and lows can be used by traders to identify possible areas of support and resistance , which can then be used to determine optimal positions for stop-loss or profit target orders. If an indicator fails to create a new swing high while the price of the security does reach a new high, there is a divergence between price and indicator, which could be a signal that the trend is reversing.

Swing highs and swing lows are earlier market turning points. Hence, they are natural choices for projecting support and resistance levels. Every swing point is a potential support or resistance level . However, for effective trading, focus on major swing highs and lows.

////////////////////////////////////////////////////////////
// Technical Analysis & Research Patternsmart.com
//
// Custom indicators, Strategies, SCAN, Screener, Backtesting, Converting service for:
// Tradingview, NinjaTrader, Thinkorswim, MetaTrader, MetaStock, Multicharts, Prorealtime, etc.
//
// If you want to customise this indicator, please contact us.
////////////////////////////////////////////////////////////
Remove from Favorite Scripts Add to Favorite Scripts
One other quick question....Can you tell me how setting a longer swing length will modify the chart and the S/R levels?
Reply
Love this indicator---it automates something that I was doing manually....BTW...is this available for NinjaTrader8 and TOS?
Reply
Patternsmart gottrocks
@gottrocks, Yes, please check my site.
Reply
gottrocks Patternsmart
Reply
This is Awesome, Can I get this code for Amibroker.com
Reply
would you like to share the code?
Reply
How do I get the code?
Reply
//@version=2
study("Core Pivot",shorttitle="CPIVOT", overlay=true)

leftBars = input(6)
rightBars = input(6)

running_ph = running_ph
running_pl = running_pl

ph = pivothigh(leftBars, rightBars)
pl = pivotlow( leftBars, rightBars)

if (ph)
running_ph := ph

if (pl)
running_pl := pl

plot(running_ph, style=cross, linewidth=1, color= blue, offset=-rightBars)
plot(running_ph, style=cross, linewidth=1, color= blue, offset=0)
plot(running_pl, style=cross, linewidth=1, color= red, offset=-rightBars)
plot(running_pl, style=cross, linewidth=1, color= red, offset=0)
+12 Reply
Recommended inputs for use of daily chart?
+7 Reply
So the Swing Length setting is important here. In real time it will paint a dot as many bars back as the swing length setting. So, with the default of 9 and using a 1-minute chart, you might get a support dot painted on the 10:00 candle at the close of the 10:09 candle, or 9 minutes prior. So if you are back testing this consider that you won't know where the SR dots are until X candles/bars after the start of this area, with X being your input value for Swing Length. That's what I've found anyway.

This would make it impossible to say buy the first candle after a support dot has been printed, unless your Swing Length value is set to 1. But you could buy a retest of that area if it happens after your X value.
+1 Reply
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out