TradingView
LunaOwl
Apr 20, 2020 8:07 AM

[LunaOwl] 智慧型RSI (Smart RSI - a handy tool with less noise) 

Bitcoin / United States DollarCoinbase

描述

Relative Strength Index is a common technical analysis tool, it is classified as a momentum oscillator, measuring the velocity and magnitude of directional price movements. it is most typically used on a 14-period timeframe, measured on a scale from 0 to 100, with high and low levels marked at 70 and 30.

相對強弱指標是常見的技術分析工具,它被歸類為動量振盪器,用於測量定向價格運動的速度和幅度,通常會使用14期數,擺盪範圍在0到100間,超買超賣分別標記成70、30。

after simple improvement and addition of logical judgment, it becomes a passive judge from subjective judgments, avoid the shortcomings of peoples in watching passivation, and the trade can be more consistent.

經過簡單的改良與添加邏輯判斷,能夠使RSI指標的使用,從主觀的判斷成為被動的確認指標,有效避免人們判斷指標鈍化的主觀缺失,並能夠使得交易更加一致。

--------------------------*

1) parameter

  • RSI period 1 - default is 14, same as general RSI.
  • RSI period 2 - default is 5, due to its own formula, the amplitude of the oscillator will become larger and more agile or fast. When the parameter is small.
  • exponential moving avg of RSI - using the result of RSI period 1 as the source of Ema's formula, the default length is 14, which can filter the excessive agility of RSI period 2 to reduce noise, and compared to using the baseline as the criterion for long and short judgments, The characteristics of exponential moving avg are more suitable to become flexible filtering standards.
  • Overbought - default is 70, you can set your overbought level.
  • Oversold - same as above, the default is 30.


2) Options

  • Open Candle color(開啟蠟燭線趨勢) - choose whether to start the color of the candle.
  • Open background color(開啟指標背景色) - the default is false, you can turn on.


--------------------------*

1. 設置參數

  • RSI期數1:預設值是14,是普通的RSI指標。
  • RSI期數2:預設值是5,由於RSI公式的算法,造成參數愈小擺盪幅度就會變大,反應比較快。
  • 指數平均化的RSI期數1:將RSI期數1的結果帶入指數移動平均公式,預設值14,它能過濾RSI期數2過度敏捷的缺點,減少雜訊,相較於單純使用基準線作為多空判斷標準,用EMA的判斷標準更加因時制宜。
  • 超買線:預設值是70,可以隨意調。
  • 超賣線:預設值是30,一樣的。


2. 設定選項

  • 開啟蠟燭線趨勢:顧名思義。已經幫您開好了。
  • 開啟指標背景色:顏色太淺的話可以調深一點。


--------------------------*

ver.2- adjust new style design and create two options.
修改2: 調整新的樣式設計與建立兩個選項。

--------------------------*

ver.3- Create alert condition. maybe I should refer to the Alert Creation Framework,
there is also room for improvement.
修改3: 建立快訊選項。我應該參考警報創建框架,還有進步空間。

--------------------------*

Indicator Style - 指標樣式

The design uses casual light color style, light gray between overbought and oversold.



--------------------------*

Market Example - 市場範例

1. Bitcoin/Tether, Binance, 1 day


2. Bitcoin/USD, Coinbase, 4 hour


3. EUR/USD, Forex Market, 4 hour


4. GBP/USD, Forex Market, 30 min


5. TAIEX, Taiwan SE Weighted Index, 1 week


--------------------------*

postscript - 後記感想

The purpose of publishing Chinese Scripts is to make Pine close to more Chinese user.
I hope English skills enhancement...staggered writing makes me feel hard.
發布中文腳本的目的,是希望可以讓 Pine 親近更多中文圈的使用者。希望我的英語進步,中英文交錯撰寫有一些困難。

--------------------------*

If you find my works useful, you can give me encouragement. I can buy more books to sophisticated themselves.
如果您發現我的作品有用,可以給我鼓勵。讓我可以買更多書籍來精進自己。

版本注释

modified version error.
评论
levith
想请教一下,智慧二字在 你的指标中所指的是?
还有的你更少的noise是怎么处理,我看了代码好像并没有没有发现有平滑处理
LunaOwl
RSI原本是主觀性很強的指標,判斷超買超賣的標準模糊,實務上不好運用,如果把它的使用邏輯從前位交易,改變成後位交易,能把RSI變成可以被確實判斷的指標。當RSI-14期值本身被判斷標準為中央基準線50,那麼會出現多頭市場回落許多,RS才低於50的情況,同樣的空頭市場也需要反彈許多,RS才會高於50,由於中央基準線本身不會隨著RS移動變化,因此穿越較慢會產生延遲,當將RSI-14期值指數平均化,那麼將它作為多空判斷標準時會隨著起伏變化,從而達到提早出場或進場的結果。當空頭市場發展持久,EMA-RSI-14期值會隨著下沉,當RSI-5期值上升,則會提早產生反轉。可以直接看燭台顏色的變化交易。
levith
@LunaOwl, 哦,测试了一下,很不错的思路,非常感谢你的指点!!
LunaOwl
@levith, 如果喜歡,就是很好的鼓勵。祝你交易愉快。
levith
@LunaOwl, 在波动市场中表现很好,在盘整市场和卖空方向效果略有不足,你可以试试godmode,或许你会有意外收获
bodavinci
Great thanks for sharing! it's odd im not allowed to type chinese
LunaOwl
@bodavinci, 可能是網頁語言沒有選擇繁體中文(?
sismiku
good!
RSI指標我最近才學到,感謝新的交易策略
LunaOwl
@sismiku, I wish you a nice day. 紀律交易有助於避免重大損失和慢慢累積。
CodyMaki
this is awesome thank you
更多