2023年5月
#155 帰ってきたモメンタム講座 Vol.1
20:03
【モメンタムチャート】
https://www.tradingview.com/x/8VRzl8uY/
【モメンタム スクリプト】
//@version=5
indicator("モメンタム", shorttitle = "MOM", precision = 2)
// モメンタムと移動平均線の本数
Length = input(25, title = "モメンタム移動平均")
MALength = input(10, title = "モメンタム値")
// その日の終値とlength本前の終値の差を求める関数を定義
Fx_Mom(length) =>
ta.change(close, length)
// モメンタムを求める
Momentum = Fx_Mom(MALength - 1)
// モメンタムの移動平均線を求める
MomentumMA = ta.sma(Momentum, MALength)
// 求めたモメンタムとその移動平均線をプロットする
plot(Momentum, color = color.rgb(233, 241, 166), linewidth = 2,title = "モメンタム")
plot(MomentumMA, color = color.rgb(62, 121, 198), linewidth = 2,title = "モメンタム移動平均線")
// 0地点に横線を引く
hline(0, color = color.red, linestyle = hline.style_dashed, linewidth = 1, editable = false)
https://www.tradingview.com/x/8VRzl8uY/
【モメンタム スクリプト】
//@version=5
indicator("モメンタム", shorttitle = "MOM", precision = 2)
// モメンタムと移動平均線の本数
Length = input(25, title = "モメンタム移動平均")
MALength = input(10, title = "モメンタム値")
// その日の終値とlength本前の終値の差を求める関数を定義
Fx_Mom(length) =>
ta.change(close, length)
// モメンタムを求める
Momentum = Fx_Mom(MALength - 1)
// モメンタムの移動平均線を求める
MomentumMA = ta.sma(Momentum, MALength)
// 求めたモメンタムとその移動平均線をプロットする
plot(Momentum, color = color.rgb(233, 241, 166), linewidth = 2,title = "モメンタム")
plot(MomentumMA, color = color.rgb(62, 121, 198), linewidth = 2,title = "モメンタム移動平均線")
// 0地点に横線を引く
hline(0, color = color.red, linestyle = hline.style_dashed, linewidth = 1, editable = false)
聴く日経平均 オプション投資ラボ
熊谷@オプション投資家
- 01:441.
プロローグ
- 09:462.
モメンタムの基本のキ
- 08:343.
モメンタムチャート 作成方法
コメント
バックナンバーを購入するとコメント欄に参加することができます