TradingView
LunaOwl
15 maj 2020 09:17

[LunaOwl] Moving average Bias Ratio 

Bitcoin / US Dollar IndexBitMEX

Beskrivning

作品: 均線乖離率 (Moving average Bias Ratio)

The concept of Moving average Bias Ratio is according to the difference between the long/short-term MA changes, determine the direction of buy or sell. Long if the short-term MAs is above the long-term MAs; Conversely, if the short-term MAs is below the long-term MAs, it is not held.

均線乖離率的概念,是根據長短期均線變化之間的乖離來確定多空方向。如果短期高於長期,則買進;相反的~如果短期低於長期,則空手。

Using the deviation rate alone will have the disadvantage of unclear signals, which can only explain the increased chance of market reversal. It needs to cooperate with the rule of thumb and other analytical tools.

單獨使用乖離率會有信號不明確的缺點,只能解釋市場發生反轉的機會增加,需要配合經驗法則和其他分析工具。

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

Formula - 公式

Avg. BIAS = ( MA(short) - MA(long) ) ÷ MA(long) × 100 %
均線乖離率 =(短期平均-長期平均) ÷ 長期平均 × 100 %

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

The greater the distance between the two moving averages, the greater the Bias Ratio.

Versionsinformation

Add strategy attributes, backtest, increase moving average type VWMA, and increase datetime range.
增加策略屬性,可回測,增加移動平均種類VWMA,增加起訖日期時間範圍。
Kommentarer
taiwanguest
謝謝大大佛心的分享
不過想請教一下
我使用了腳本但上方的藍紅線該怎叫出來呢?
LunaOwl
會叫出兩條藍、紅線,是為了體現線之間的差值,只是拿出來看的。
hughlxj
您好,謝謝您的分享!請教一下,在1分鐘5分鐘1小時短波段使用時,這兩個參數應該設置多少?正負多少算是超買超賣?謝謝
MrBrux
Hey. What settings for the 1 and 5 minute timeframe do you recommend?
LunaOwl
@MrBrux, The short-term timeframe, the larger the recommended setting value, but the response will be faster in 5 minutes. RMA (39, 130). also note the increase in transaction costs.
miumiu_y
支持中文开源脚本!感谢分享!!赞!
ijit997777
想請問大大,我想計算當前收盤價格與均線之前的乖離率這樣的話該怎麼寫呢
Jittra
Someone needs to make this a strategy.
LunaOwl
Hello~ has been updated, you can try it.
Mer