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)