OPEN-SOURCE SCRIPT
已更新 Period High/Low Percentage Difference

Check for price away from 200 days high/low and from recent high and low. Found it difficult to keep switching from regular to percentage in chart. I use it for ETF investing.
發行說明
Check for price away from 200 days high/low and from recent high and low. Found it difficult to keep switching from regular to percentage in chart. I use it for ETF investing.V1.2
Added a mid line.
發行說明
Added label to midline發行說明
This I think is the final version. Added a price/volume study as ratio. The volumes had to be normalised by a divisor, initially using 30000 but it is user defined and in case extreme high or low volumes the visualisation would be skewed.
It appears that, as the ratio rises i.e. price increase and volume decrease leads to selling and vice-versa. My mathematical abilities being limited would need help with correlation of ratio to a buy or sell signal, or suggestion for use with another indicator.
發行說明
Just a clean up.發行說明
Removed Candles being generated by script. Price volume ratio apparently serves very little purpose, can be switched off, it's being retained to make it into a price volume divergence signal (as a greedy trader I want to catch volumes going up before price catches up), hopefully. 發行說明
In tradingview can't find a way to enter price of stocks already held. As a work around have put a horizontal line at price point already bought. The line should appear once ticker matches your entry. However I and unable to handle arrays as a pair. So the work around is hard coding in the script. If you want to add a ticker you open the script after making a working copy and copy section between remarks Copy from here to copy till here. change the values as given in remarks.
Someone more knowledgeable can help with kind of mapping as here
map.set(pricesMap, "NSE:GOLDBEES", 70)
map.set(pricesMap, "NSE:NIFTYBEES", 247)
map.set(pricesMap, "NSE:ALPHA", 50)
map.set(pricesMap, "NSE:RELIANCE", 2500)
I tried but failed.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。