OPEN-SOURCE SCRIPT
已更新 Patrick Walker Flat Base

This pine script is provide recent support and resistance.
Script will use ema8, ema21, sma50 and sma200 to generate the support and resistance line.
Inspired from Patrick Walker style of trading. This is my personal logic i build studying the charts.
There is 3 types of resistance generated by this script.
1) top resistance 1
when ema8 > ema21 and low > ema8 and gap between ema21 and sma50 is less than 10% and in last 3 days previous 4th days highs is not crossed by close.
2) top resistance 2
when close/open below ema21 and ema8 > ema21 and high >= ema8 and ema21 > sma50 and gap between ema21 and sma50 is less than 10%
3) bottom resistance
when ema8 < ema21 and close/open cross above ema8 but high < ema21
Script will use ema8, ema21, sma50 and sma200 to generate the support and resistance line.
Inspired from Patrick Walker style of trading. This is my personal logic i build studying the charts.
There is 3 types of resistance generated by this script.
1) top resistance 1
when ema8 > ema21 and low > ema8 and gap between ema21 and sma50 is less than 10% and in last 3 days previous 4th days highs is not crossed by close.
2) top resistance 2
when close/open below ema21 and ema8 > ema21 and high >= ema8 and ema21 > sma50 and gap between ema21 and sma50 is less than 10%
3) bottom resistance
when ema8 < ema21 and close/open cross above ema8 but high < ema21
版本注释
changed condition for top resistance 1now its only generate when ema8 or ema21 above sma50
版本注释
Added Relative Strength Line and Relative Strength 21 and 50 into the table版本注释
added rsline 200 and rs 200版本注释
bug fix in color code版本注释
Added input value for gap between 21 & 50. so user can set as per their need.Default value is 10
版本注释
updated condition for top resistance 1 and 2minimum 3 days required ema8 > ema21
版本注释
Updated bottom resistance conditionadded close need to be below sma50
removed high need be below ema21
版本注释
updated top resistance code condition to check ema8 > ema21 for at least 3 days版本注释
updated bottom resistance code condition版本注释
Added one more resistance code i called it downdays resistance
when close < open but close > (high+low)/2 then its generate the resistance.
版本注释
bug fix in down days resistance condition版本注释
Added volume condition for down days resistance版本注释
updated bottom resistance conditionnow it will check for close < ema21 and high >= ema21
版本注释
removed open/close above ema8 condition for bottom resistance code版本注释
removed open < sma50 for bottom resistance code.版本注释
Added 5 & 10 Days Pivot Points版本注释
Added 20 days pivot point版本注释
Added Hide / Show input for all the lines.版本注释
changed bottom resistance condition to high > sma50 and close < sma50版本注释
changed bottom resistance condition版本注释
Added 252 days high resistance if next 15 days highest close is not crossed that high.版本注释
Added option to draw recent latest 252 days high resistance or multiple in last 5 yearsspeed improvements in 252 days high resistance code.
版本注释
bug fix in 252 days recent high code版本注释
Added option to hide/show Relative strength table版本注释
bug fix in 10 days pivot point code版本注释
bug fix in 10 days pivot points code版本注释
code improvements in 252 days high resistance line.开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。