RSI 相對強弱指標
1.計算公式
先求相對強弱值=N日內收盤價上漲幅度總和÷N日內收盤價下跌幅度總和。
再求RSI線=100-100÷(1+相對強弱值)。
2.中文註解:
RSI在50以上準確性較高。 (1)6日RSI向上突破85,為超買;向下跌破15,為超賣。
(2)盤整時,RSI一底比一底高表多頭勢強後市可能續漲;反之是賣出信號。
(3)當股價在盤整階段,而RSI整理完成突破整理區向上,股價將隨之突破。
(4)短週期RSI(如6日RSI)向上突破長週期RSI(如12日RSI或24日RSI),為買進信號;
反之為賣出信號。
3.TS語法:
{*******************************************************************
Description : This Indicator plots RSI
Provided By : Omega Research, Inc. (c) Copyright 1999
********************************************************************}
Inputs: Price(Close), Length(14), BuyZone(30), SellZone(70), BZColor(Green), SZColor(Magenta);
Plot1(RSI(Price, Length), "RSI");
Plot2(BuyZone, "BuyZone");
Plot3(SellZone, "SellZone");
If Plot1 > SellZone then Begin
Alert("The RSI is in overbought territory");
SetPlotColor(1, SZColor);
End
Else
If Plot1 < BuyZone then Begin
Alert("The RSI is in oversold territory");
SetPlotColor(1, BZColor);
End;
{RSI Expert Commentary }
#BeginCmtry
Commentary(ExpertRSI(Plot1, Plot2, Plot3));
#End;
全站熱搜