OPEN-SOURCE SCRIPT
Cập nhật 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
Phát hành các Ghi chú
changed condition for top resistance 1now its only generate when ema8 or ema21 above sma50
Phát hành các Ghi chú
Added Relative Strength Line and Relative Strength 21 and 50 into the tablePhát hành các Ghi chú
added rsline 200 and rs 200Phát hành các Ghi chú
bug fix in color codePhát hành các Ghi chú
Added input value for gap between 21 & 50. so user can set as per their need.Default value is 10
Phát hành các Ghi chú
updated condition for top resistance 1 and 2minimum 3 days required ema8 > ema21
Phát hành các Ghi chú
Updated bottom resistance conditionadded close need to be below sma50
removed high need be below ema21
Phát hành các Ghi chú
updated top resistance code condition to check ema8 > ema21 for at least 3 daysPhát hành các Ghi chú
updated bottom resistance code conditionPhát hành các Ghi chú
Added one more resistance code i called it downdays resistance
when close < open but close > (high+low)/2 then its generate the resistance.
Phát hành các Ghi chú
bug fix in down days resistance conditionPhát hành các Ghi chú
Added volume condition for down days resistancePhát hành các Ghi chú
updated bottom resistance conditionnow it will check for close < ema21 and high >= ema21
Phát hành các Ghi chú
removed open/close above ema8 condition for bottom resistance codePhát hành các Ghi chú
removed open < sma50 for bottom resistance code.Phát hành các Ghi chú
Added 5 & 10 Days Pivot PointsPhát hành các Ghi chú
Added 20 days pivot pointPhát hành các Ghi chú
Added Hide / Show input for all the lines.Phát hành các Ghi chú
changed bottom resistance condition to high > sma50 and close < sma50Phát hành các Ghi chú
changed bottom resistance conditionPhát hành các Ghi chú
Added 252 days high resistance if next 15 days highest close is not crossed that high.Phát hành các Ghi chú
Added option to draw recent latest 252 days high resistance or multiple in last 5 yearsspeed improvements in 252 days high resistance code.
Phát hành các Ghi chú
bug fix in 252 days recent high codePhát hành các Ghi chú
Added option to hide/show Relative strength tablePhát hành các Ghi chú
bug fix in 10 days pivot point codePhát hành các Ghi chú
bug fix in 10 days pivot points codePhát hành các Ghi chú
code improvements in 252 days high resistance line.Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.