IGNORE PREVIOUS SCRIPT/POST (titled: "yuan normiz")
If you like to look add symbols that are valued in China's Yuan and want to convert them to USD accurately then this is the perfect script for you.
"I'm not sure if this script is for me. Does my setup apply here?"
If either of these resemble your chart setup then this is for you:
Example...
apply to symbols expressed/valued in Chinese Yuan to automatically divide the symbol by FX:USDCNH. For example, I like to apply OKCOIN:BTCCNY to my main BTCUSD chart to compare, but I'd like to have the value for BTCCNY converted to USD for each tick---whether USDCNY was 6.30 or 6.80.
This is a very narrow use script designed to be applied on top of of symbols...
Simple script to draw the upper and lower bands based on the % tolerance the PBOC has set around their reference rate.
Right now, reference rate and % tolerance are input variables that must be input/updated manually. Hopefully one day Tradingview allows the automatic update to be scripted.