FxLowe

Renminbi Peg Band

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.

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?
//@version=2
//FxLowe - CNY Peg Bands.

study(title = "CNY Peg Band", overlay = true)
ReferenceRate = input(title="Reference Rate", type=float, defval=6.5233)
TolerancePercent = input(title="Percentage Tolerance", type=float, defval=2.1)

band = ReferenceRate * (TolerancePercent/100)

plot(ReferenceRate+band, title="Upper Bound", color=orange, editable=true)
plot(ReferenceRate-band, title="Lower Bound", color=orange, editable=true)