チャートで相対的に株価の強さを確認できる指標です。
需給の強さを分析するのに参考になると思います。
Trading Viewのコード
下記のコードをTradingViewのPineエディタに入れて、インジケーターを作成してください。
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © M_iwase
//@version=6
//相対 移動平均
indicator(title="iwase index", shorttitle="iwase index", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
s_length = input.int(5, "短期",group = "期間設定",minval=1)
l_length = input.int(40, "長期",minval=1)
A_s_ma = ta.sma(close, s_length)
A_l_ma = ta.sma(close, l_length)
var tick_B_symbol = input.string("TOPIX", "シンボル", group = "比較対象", inline = "1")
source = request.security(symbol = tick_B_symbol, timeframe = timeframe.period, expression = close)
B_s_ma = ta.sma(source, s_length)
B_l_ma = ta.sma(source, l_length)
AB_s_ma = A_s_ma / B_s_ma * 100
AB_l_ma = A_l_ma / B_l_ma * 100
plot(AB_s_ma, "IDX1", color=color.blue)
plot(AB_l_ma, "IDX2", color=color.red)
TradingViewのインジケーターの登録について
岩瀬インデックスの説明
他にもトレードで役立つ情報について 以下のページで共有しています。
