Trendoscope

RSI - Dynamic Overbought/Oversold Range

Trendoscope Wizard מעודכן   
Default overbought/oversold levels of RSI does not hold good for instruments which are trending well. It happens often that instruments keep trading in single half of the range for prolonged time without even touching the other half. This also came up often in tradingview pine chat discussions where I participate regularly.

Hence, thought of creating this script to help other scriptors in finding different methods to derive dynamic high/low range of RSI. This can also be adopted for other range bound oscillators - though not inlcuded in this script.

⬜ Method

▶ Derive multitimeframe RSI. Parameters - Resolution, Source and Length are pretty straight forward. Repaint when unchecked uses previous bar value.
▶ Dynamic range detection follows below steps.
  • Get highest and lowest of the oscillator source for Range Length period.
  • Use Detection method further to refine the highest and lowest range. If detection method is "highlow", then it looks for lowest value for high range and highest value for low range. If not, uses moving average.

◽Note: Detection range length is used only for finding highest and lowest of Oscillator value ranges. Further detection range method of highlow and other moving average types use Oscillator length.
הערות שחרור:
Minor correction - removed few redundant lines.
הערות שחרור:
Added sticky range option to stick levels till crossover. Converted script to pine 5 :)

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?