OPEN-SOURCE SCRIPT

[LunaOwl] Moving average Bias Ratio

已更新
作品: 均線乖離率 (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.
快照
版本注释
Add strategy attributes, backtest, increase moving average type VWMA, and increase datetime range.
增加策略屬性,可回測,增加移動平均種類VWMA,增加起訖日期時間範圍。
biasExponential Moving Average (EMA)lunaowlMoving AveragesSimple Moving Average (SMA)

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明