
一定期間前の価格との比をとって、値動きの勢いを表す指標です。変化がなければ100、上昇すれば100を上回り、下落すれば100を下回ります。
double iMomentum(
string <u>[symbol](https://toyolab-fx.notion.site/7010417f6ffc4d43aaca4a8b77bafcfd)</u>, // 銘柄
ENUM_TIMEFRAMES <u>[timeframe](https://toyolab-fx.notion.site/7010417f6ffc4d43aaca4a8b77bafcfd)</u>, // 時間軸
int period, // 計算する期間
ENUM_APPLIED_PRICE <u>[applied_price](https://toyolab-fx.notion.site/7010417f6ffc4d43aaca4a8b77bafcfd)</u>, // 価格の種類
int <u>[shift](https://toyolab-fx.notion.site/7010417f6ffc4d43aaca4a8b77bafcfd)</u> // 計算するバーの位置
);
モメンタムのパラメータは、計算する期間periodです。
現在のバーにおけるモメンタムMOMENTUM[0]は、現在の価格のperiod本前の価格に対する変化率(%)として計算されます。
MOMENTUM[0] = Price[0]/Price[period]*100
Price[0]:applied_priceで指定した現在の価格
Price[period]:period本前の価格