Renminbi Peg BandSimple 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.