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.

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
//@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)