This indicator shows the support and resistance levels of four periods. Now you can customize it entirely, defining the periods and what you can show, or not.

When a weaker support/resistance is broken you now what is the next support/resistance .

The average of support and resistance can be used as an entry point or as a indicator of bear/bull market (when the close price is below the average the market is bear, and when the close price is above the average the market is bull).

To add to your chart, add this to favorites and in your chart go to indicators, then to favorites, and it will appear on the right side.

Please, give-me your feedback! And a Tip if you will use it.
從常用腳本中移除 新增至常用腳本
study("Dynamic S&R",overlay=true)

// Author: samuelhei
// Tips: 1NR9tyn8tAn6nuQzosaZ2SkfT38PLxN5mf
// Feel free to use this script as you want!

a = input(400,"A (bars back)") 
ha = input(true,"Habilitate A",type=bool)
hb = input(true,"Habilitate B",type=bool)
hc = input(true,"Habilitate C",type=bool)
hd = input(true,"Habilitate D",type=bool)

cb = input(0,"Custom B 0=(A/2)",type=integer)
cc = input(0,"Custom C 0=(B/2)",type=integer)
cd = input(0,"Custom D 0=(C/2)",type=integer)

hac = input(true,"Habilitate Average of support and resistance of D", type=bool)
avm = input(1,"Multiplier of averege line.", type=float)

b = cb ? cb : a/2
c = cc ? cc :b/2
d = cd ? cd :c/2

hga = highest(close,a)
hgb = highest(close,b)
hgc = highest(close,c)
hgd = highest(close,d)

la = lowest(close,a)
lb = lowest(close,b)
lc = lowest(close,c)
ld = lowest(close,d)

pha = plot(ha ? hga : na,"Highest A",gray)
phb = plot(hb ? hgb : na,"Highest B",gray)
phc = plot(hc ? hgc : na,"Highest C",gray)
phd = plot(hd ? hgd : na,"Highest D",gray)


pla = plot(ha ? la : na,"Lowest A",gray)
plb = plot(hb ? lb : na,"Lowest B",gray)
plc = plot(hc ? lc : na,"Lowest C",gray)
pld = plot(hd ? ld : na,"Lowest D",gray)


av = ((hgd + ld) / 2)*avm

plot(hac ? av : na,"Average",black)


This is actually extremely useful, thanks
+3 回覆
Very interesting - we will see if it can work - great work
+2 回覆
very usefull... thanks
did not understand settings.where is timeframe setting?
this looks really interesting and very close to Dynamic Accumulation/ Distribution on Ninjatrader, which I have been searching for for Tradingview. I notice that the lines move as I zoom in and out of the chart. If they are formed on the price action of the last set number of bars, shouldnt they be somewhat locked in place like the Ninjatrader version here: ?
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出