Stochastic Momentum Index (SMI)
Calculate the Stochastic Momentum Index (SMI): where the close lies relative to the middle of the high-low range of a window, smoothed, from -100 to 100.
The Stochastic Momentum Index of Blau (1993) measures where the close sits relative to the midpoint of the high-low range, rather than to its low as the stochastic does, and smooths both the distance and the range twice with an exponential average before dividing. It runs from -100 (a close on the low) to +100 (a close on the high) around zero, is less erratic than the stochastic, and is read with its signal line and the levels -40 and 40.
The formula is as follows:
\[\text{Distance} = \text{Close} - \frac{\text{Highest High}(\text{window}) + \text{Lowest Low}(\text{window})}{2}\] \[\text{Range} = \text{Highest High}(\text{window}) - \text{Lowest Low}(\text{window})\] \[\text{SMI} = \frac{100 \cdot \operatorname{EMA}(\operatorname{EMA}(\text{Distance},\; \text{long\_window}),\; \text{short\_window})}{0.5 \cdot \operatorname{EMA}(\operatorname{EMA}(\text{Range},\; \text{long\_window}),\; \text{short\_window})}\] \[\text{Signal Line} = \operatorname{EMA}(\text{SMI},\; \text{signal\_window})\]Blau uses a 13-period range, smoothed over 25 and then 2 periods.
Also known as: SMI, Blau’s stochastic momentum.
Example · AAPL, MSFT · 2024 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_stochastic_momentum_index:
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["AAPL", "MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2024-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_stochastic_momentum_index().xs("AAPL", level=1, axis="columns")
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How did the Stochastic Momentum Index of Apple and its signal line move in 2025?
Which returns:
| Date | Signal Line | Stochastic Momentum Index |
|---|---|---|
| 2024-01-02 | 38.3782 | 18.1285 |
| 2024-01-03 | 32.1605 | 7.2894 |
| 2024-01-04 | 25.0835 | -3.2241 |
| 2024-01-05 | 17.5496 | -12.5864 |
| 2024-01-08 | 10.6127 | -17.1347 |
| 2024-01-09 | 4.4357 | -20.2723 |
| 2024-01-10 | -0.8008 | -21.7470 |
| 2024-01-11 | -5.1605 | -22.5990 |
| 2024-01-12 | -8.6777 | -22.7466 |
| 2024-01-16 | -11.8232 | -24.4051 |
| 2024-01-17 | -14.8861 | -27.1378 |
| 2024-01-18 | -17.0128 | -25.5198 |
| 2024-01-19 | -17.5601 | -19.7490 |
| 2024-01-22 | -16.4967 | -12.2431 |
| 2024-01-23 | -13.9740 | -3.8831 |
| 2024-01-24 | -10.4898 | 3.4467 |
| 2024-01-25 | -6.4543 | 9.6879 |
| 2024-01-26 | -2.3752 | 13.9413 |
| 2024-01-29 | 1.4679 | 16.8401 |
| 2024-01-30 | 4.4839 | 16.5478 |
| 2024-01-31 | 6.1409 | 12.7688 |
| 2024-02-01 | 6.8891 | 9.8820 |
| 2024-02-02 | 6.9265 | 7.0760 |
| 2024-02-05 | 6.6865 | 5.7266 |
| 2024-02-06 | 6.5472 | 5.9898 |
| 2024-02-07 | 6.5959 | 6.7910 |
| 2024-02-08 | 6.6732 | 6.9824 |
| 2024-02-09 | 6.8356 | 7.4850 |
| 2024-02-12 | 6.8646 | 6.9806 |
| 2024-02-13 | 6.5616 | 5.3497 |
| 2024-02-14 | 5.9968 | 3.7374 |
| 2024-02-15 | 5.2221 | 2.1235 |
| 2024-02-16 | 4.1309 | -0.2341 |
| 2024-02-20 | 2.6485 | -3.2812 |
| 2024-02-21 | 0.9332 | -5.9278 |
| 2024-02-22 | -0.7092 | -7.2786 |
| 2024-02-23 | -2.4707 | -9.5168 |
| 2024-02-26 | -4.5739 | -12.9865 |
| 2024-02-27 | -6.6988 | -15.1986 |
| 2024-02-28 | -8.9327 | -17.8681 |
| 2024-02-29 | -11.2877 | -20.7077 |
| 2024-03-01 | -13.5505 | -22.6019 |
| 2024-03-04 | -16.0065 | -25.8303 |
| 2024-03-05 | -19.0114 | -31.0313 |
| 2024-03-06 | -22.5518 | -36.7132 |
| 2024-03-07 | -26.4560 | -42.0726 |
| 2024-03-08 | -30.2863 | -45.6077 |
| 2024-03-11 | -33.5965 | -46.8375 |
| 2024-03-12 | -36.2676 | -46.9521 |
| 2024-03-13 | -38.6235 | -48.0468 |
| 2024-03-14 | -40.5016 | -48.0141 |
| 2024-03-15 | -41.9549 | -47.7683 |
| 2024-03-18 | -42.8788 | -46.5741 |
| 2024-03-19 | -42.9087 | -43.0286 |
| 2024-03-20 | -41.6340 | -36.5349 |
| 2024-03-21 | -40.2527 | -34.7274 |
| 2024-03-22 | -38.9603 | -33.7909 |
| 2024-03-25 | -38.0244 | -34.2809 |
| 2024-03-26 | -37.6937 | -36.3706 |
| 2024-03-27 | -37.4122 | -36.2862 |
| 2024-03-28 | -37.3321 | -37.0120 |
| 2024-04-01 | -37.7079 | -39.2111 |
| 2024-04-02 | -38.5880 | -42.1085 |
| 2024-04-03 | -39.7525 | -44.4103 |
| 2024-04-04 | -41.2331 | -47.1557 |
| 2024-04-05 | -42.8382 | -49.2587 |
| 2024-04-08 | -44.6860 | -52.0768 |
| 2024-04-09 | -46.4815 | -53.6635 |
| 2024-04-10 | -48.1736 | -54.9420 |
| 2024-04-11 | -48.4671 | -49.6413 |
| 2024-04-12 | -47.1132 | -41.6975 |
| 2024-04-15 | -45.1029 | -37.0615 |
| 2024-04-16 | -43.4505 | -36.8411 |
| 2024-04-17 | -42.6177 | -39.2865 |
| 2024-04-18 | -42.6819 | -42.9388 |
| 2024-04-19 | -43.5352 | -46.9482 |
| 2024-04-22 | -44.8226 | -49.9722 |
| 2024-04-23 | -46.1650 | -51.5348 |
| 2024-04-24 | -47.0736 | -50.7079 |
| 2024-04-25 | -47.3582 | -48.4967 |
| 2024-04-26 | -47.1932 | -46.5331 |
| 2024-04-29 | -46.0092 | -41.2734 |
| 2024-04-30 | -44.4078 | -38.0018 |
| 2024-05-01 | -42.7104 | -35.9209 |
| 2024-05-02 | -40.3838 | -31.0772 |
| 2024-05-03 | -36.4401 | -20.6656 |
| 2024-05-06 | -31.4216 | -11.3475 |
| 2024-05-07 | -25.7225 | -2.9262 |
| 2024-05-08 | -19.7067 | 4.3564 |
| 2024-05-09 | -13.4062 | 11.7957 |
| 2024-05-10 | -7.2345 | 17.4526 |
| 2024-05-13 | -1.0693 | 23.5912 |
| 2024-05-14 | 5.0416 | 29.4851 |
| 2024-05-15 | 11.1008 | 35.3378 |
| 2024-05-16 | 16.9980 | 40.5866 |
| 2024-05-17 | 22.6504 | 45.2599 |
| 2024-05-20 | 28.0146 | 49.4716 |
| 2024-05-21 | 32.8864 | 52.3735 |
| 2024-05-22 | 37.0960 | 53.9345 |
| 2024-05-23 | 40.1741 | 52.4863 |
| 2024-05-24 | 42.5333 | 51.9700 |
| 2024-05-28 | 44.3449 | 51.5912 |
| 2024-05-29 | 45.7594 | 51.4176 |
| 2024-05-30 | 46.9233 | 51.5789 |
| 2024-05-31 | 47.9869 | 52.2414 |
| 2024-06-03 | 49.0313 | 53.2087 |
| 2024-06-04 | 50.0887 | 54.3185 |
| 2024-06-05 | 51.2073 | 55.6817 |
| 2024-06-06 | 52.1673 | 56.0073 |
| 2024-06-07 | 53.3069 | 57.8650 |
| 2024-06-10 | 54.0265 | 56.9050 |
| 2024-06-11 | 55.2337 | 60.0628 |
| 2024-06-12 | 56.2722 | 60.4259 |
| 2024-06-13 | 57.1478 | 60.6502 |
| 2024-06-14 | 57.6529 | 59.6736 |
| 2024-06-17 | 58.3047 | 60.9117 |
| 2024-06-18 | 58.8950 | 61.2564 |
| 2024-06-20 | 58.8481 | 58.6604 |
| 2024-06-21 | 57.9558 | 54.3865 |
| 2024-06-24 | 56.4339 | 50.3465 |
| 2024-06-25 | 54.5796 | 47.1624 |
| 2024-06-26 | 52.9534 | 46.4487 |
| 2024-06-27 | 51.7406 | 46.8890 |
| 2024-06-28 | 50.5675 | 45.8753 |
| 2024-07-01 | 49.5882 | 45.6710 |
| 2024-07-02 | 49.1348 | 47.3212 |
| 2024-07-03 | 49.2596 | 49.7586 |
| 2024-07-05 | 49.9914 | 52.9187 |
| 2024-07-08 | 51.2614 | 56.3412 |
| 2024-07-09 | 52.9034 | 59.4718 |
| 2024-07-10 | 54.9131 | 62.9519 |
| 2024-07-11 | 56.6714 | 63.7047 |
| 2024-07-12 | 58.3009 | 64.8186 |
| 2024-07-15 | 59.8469 | 66.0308 |
| 2024-07-16 | 61.3523 | 67.3743 |
| 2024-07-17 | 62.2831 | 66.0061 |
| 2024-07-18 | 62.1707 | 61.7208 |
| 2024-07-19 | 61.0510 | 56.5723 |
| 2024-07-22 | 59.0014 | 50.8029 |
| 2024-07-23 | 56.2298 | 45.1437 |
| 2024-07-24 | 52.4361 | 37.2611 |
| 2024-07-25 | 47.7377 | 28.9441 |
| 2024-07-26 | 42.4255 | 21.1765 |
| 2024-07-29 | 36.7662 | 14.1290 |
| 2024-07-30 | 31.0005 | 7.9379 |
| 2024-07-31 | 25.5706 | 3.8508 |
| 2024-08-01 | 20.2826 | -0.8693 |
| 2024-08-02 | 15.4672 | -3.7943 |
| 2024-08-05 | 11.1364 | -6.1869 |
| 2024-08-06 | 7.2062 | -8.5147 |
| 2024-08-07 | 3.8647 | -9.5014 |
| 2024-08-08 | 1.4126 | -8.3955 |
| 2024-08-09 | 0.0693 | -5.3040 |
| 2024-08-12 | -0.1884 | -1.2192 |
| 2024-08-13 | 0.7264 | 4.3858 |
| 2024-08-14 | 2.6304 | 10.2463 |
| 2024-08-15 | 5.4998 | 16.9774 |
| 2024-08-16 | 9.1394 | 23.6979 |
| 2024-08-19 | 13.2897 | 29.8907 |
| 2024-08-20 | 17.7639 | 35.6606 |
| 2024-08-21 | 22.3444 | 40.6665 |
| 2024-08-22 | 26.6348 | 43.7962 |
| 2024-08-23 | 30.6156 | 46.5390 |
| 2024-08-26 | 34.2877 | 48.9763 |
| 2024-08-27 | 37.6591 | 51.1445 |
| 2024-08-28 | 40.5064 | 51.8956 |
| 2024-08-29 | 42.8516 | 52.2322 |
| 2024-08-30 | 44.6840 | 52.0139 |
| 2024-09-03 | 45.4783 | 48.6552 |
| 2024-09-04 | 45.1447 | 43.8105 |
| 2024-09-05 | 43.9764 | 39.3032 |
| 2024-09-06 | 42.0331 | 34.2600 |
| 2024-09-09 | 39.4954 | 29.3443 |
| 2024-09-10 | 36.4399 | 24.2183 |
| 2024-09-11 | 33.2491 | 20.4859 |
| 2024-09-12 | 30.0756 | 17.3816 |
| 2024-09-13 | 26.9489 | 14.4419 |
| 2024-09-16 | 23.3676 | 9.0427 |
| 2024-09-17 | 19.3738 | 3.3986 |
| 2024-09-18 | 15.6404 | 0.7067 |
| 2024-09-19 | 13.2355 | 3.6157 |
| 2024-09-20 | 11.9648 | 6.8819 |
| 2024-09-23 | 11.3999 | 9.1406 |
| 2024-09-24 | 11.4110 | 11.4554 |
| 2024-09-25 | 11.7536 | 13.1236 |
| 2024-09-26 | 12.4284 | 15.1278 |
| 2024-09-27 | 13.3980 | 17.2761 |
| 2024-09-30 | 15.1525 | 22.1707 |
| 2024-10-01 | 16.9195 | 23.9875 |
| 2024-10-02 | 18.5500 | 25.0721 |
| 2024-10-03 | 19.8720 | 25.1600 |
| 2024-10-04 | 20.8837 | 24.9304 |
| 2024-10-07 | 20.8995 | 20.9625 |
| 2024-10-08 | 20.3500 | 18.1522 |
| 2024-10-09 | 19.8828 | 18.0141 |
| 2024-10-10 | 19.5994 | 18.4658 |
| 2024-10-11 | 19.3164 | 18.1843 |
| 2024-10-14 | 19.4603 | 20.0358 |
| 2024-10-15 | 20.0520 | 22.4190 |
| 2024-10-16 | 20.7448 | 23.5157 |
| 2024-10-17 | 21.4738 | 24.3901 |
| 2024-10-18 | 22.5728 | 26.9686 |
| 2024-10-21 | 24.2345 | 30.8815 |
| 2024-10-22 | 26.3089 | 34.6065 |
| 2024-10-23 | 28.0131 | 34.8299 |
| 2024-10-24 | 29.0980 | 33.4373 |
| 2024-10-25 | 29.6362 | 31.7890 |
| 2024-10-28 | 29.8860 | 30.8855 |
| 2024-10-29 | 29.9852 | 30.3818 |
| 2024-10-30 | 29.4728 | 27.4232 |
| 2024-10-31 | 27.8522 | 21.3696 |
| 2024-11-01 | 25.1252 | 14.2176 |
| 2024-11-04 | 21.4579 | 6.7887 |
| 2024-11-05 | 17.3263 | 0.7997 |
| 2024-11-06 | 12.8894 | -4.8580 |
| 2024-11-07 | 8.9875 | -6.6204 |
| 2024-11-08 | 5.7988 | -6.9559 |
| 2024-11-11 | 2.9269 | -8.5606 |
| 2024-11-12 | 0.2465 | -10.4750 |
| 2024-11-13 | -2.1600 | -11.7859 |
| 2024-11-14 | -3.8523 | -10.6218 |
| 2024-11-15 | -5.2175 | -10.6781 |
| 2024-11-18 | -5.7622 | -7.9411 |
| 2024-11-19 | -5.4715 | -4.3086 |
| 2024-11-20 | -4.3677 | 0.0474 |
| 2024-11-21 | -2.7617 | 3.6624 |
| 2024-11-22 | -0.6589 | 7.7522 |
| 2024-11-25 | 2.0591 | 12.9313 |
| 2024-11-26 | 5.4218 | 18.8723 |
| 2024-11-27 | 9.2440 | 24.5329 |
| 2024-11-29 | 13.4389 | 30.2184 |
| 2024-12-02 | 17.8963 | 35.7259 |
| 2024-12-03 | 22.6383 | 41.6066 |
| 2024-12-04 | 27.4420 | 46.6568 |
| 2024-12-05 | 32.0870 | 50.6667 |
| 2024-12-06 | 36.4279 | 53.7915 |
| 2024-12-09 | 40.6742 | 57.6595 |
| 2024-12-10 | 44.8479 | 61.5426 |
| 2024-12-11 | 48.4194 | 62.7056 |
| 2024-12-12 | 51.4762 | 63.7032 |
| 2024-12-13 | 54.0412 | 64.3013 |
| 2024-12-16 | 56.4640 | 66.1551 |
| 2024-12-17 | 58.8715 | 68.5017 |
| 2024-12-18 | 60.5225 | 67.1265 |
| 2024-12-19 | 61.5253 | 65.5364 |
| 2024-12-20 | 62.4516 | 66.1569 |
| 2024-12-23 | 63.4722 | 67.5546 |
| 2024-12-24 | 64.7023 | 69.6226 |
| 2024-12-26 | 66.0223 | 71.3026 |
| 2024-12-27 | 66.8883 | 70.3521 |
| 2024-12-30 | 66.8081 | 66.4876 |
| 2024-12-31 | 65.5939 | 60.7370 |
| 2025-01-02 | 62.6883 | 51.0660 |
| 2025-01-03 | 58.2554 | 40.5238 |
| 2025-01-06 | 52.8814 | 31.3852 |
| 2025-01-07 | 46.6322 | 21.6356 |
| 2025-01-08 | 39.8964 | 12.9533 |
| 2025-01-10 | 32.6639 | 3.7336 |
| 2025-01-13 | 25.1226 | -5.0427 |
| 2025-01-14 | 17.4435 | -13.2725 |
| 2025-01-15 | 10.3254 | -18.1474 |
| 2025-01-16 | 3.1477 | -25.5628 |
| 2025-01-17 | -3.7444 | -31.3130 |
| 2025-01-21 | -10.3659 | -36.8520 |
| 2025-01-22 | -16.4260 | -40.6663 |
| 2025-01-23 | -21.8512 | -43.5518 |
| 2025-01-24 | -26.7515 | -46.3529 |
| 2025-01-27 | -30.5429 | -45.7086 |
| 2025-01-28 | -32.4885 | -40.2706 |
| 2025-01-29 | -32.5273 | -32.6827 |
| 2025-01-30 | -31.1336 | -25.5586 |
| 2025-01-31 | -29.0413 | -20.6722 |
| 2025-02-03 | -27.2760 | -20.2149 |
| 2025-02-04 | -25.6406 | -19.0990 |
| 2025-02-05 | -24.1119 | -17.9969 |
| 2025-02-06 | -22.6215 | -16.6601 |
| 2025-02-07 | -21.6409 | -17.7185 |
| 2025-02-10 | -21.2560 | -19.7162 |
| 2025-02-11 | -20.9794 | -19.8732 |
| 2025-02-12 | -20.4538 | -18.3516 |
| 2025-02-13 | -19.3365 | -14.8674 |
| 2025-02-14 | -17.3922 | -9.6148 |
| 2025-02-18 | -14.7251 | -4.0566 |
| 2025-02-19 | -11.4701 | 1.5500 |
| 2025-02-20 | -7.6983 | 7.3885 |
| 2025-02-21 | -3.6982 | 12.3025 |
| 2025-02-24 | 0.4854 | 17.2198 |
| 2025-02-25 | 4.7075 | 21.5956 |
| 2025-02-26 | 8.3013 | 22.6766 |
| 2025-02-27 | 10.9040 | 21.3148 |
| 2025-02-28 | 12.9408 | 21.0878 |
| 2025-03-03 | 14.1881 | 19.1773 |
| 2025-03-04 | 14.5233 | 15.8645 |
| 2025-03-05 | 14.0861 | 12.3370 |
| 2025-03-06 | 13.0106 | 8.7086 |
| 2025-03-07 | 11.7915 | 6.9152 |
| 2025-03-10 | 9.7500 | 1.5840 |
| 2025-03-11 | 6.6328 | -5.8361 |
| 2025-03-12 | 2.4682 | -14.1900 |
| 2025-03-13 | -2.6951 | -23.3482 |
| 2025-03-14 | -8.0494 | -29.4667 |
| 2025-03-17 | -13.2195 | -33.9002 |
| 2025-03-18 | -18.1737 | -37.9901 |
| 2025-03-19 | -22.6848 | -40.7294 |
| 2025-03-20 | -26.7494 | -43.0079 |
| 2025-03-21 | -30.1048 | -43.5262 |
| 2025-03-24 | -32.6093 | -42.6272 |
| 2025-03-25 | -34.1502 | -40.3141 |
| 2025-03-26 | -34.9063 | -37.9304 |
| 2025-03-27 | -34.6497 | -33.6234 |
| 2025-03-28 | -33.8756 | -30.7794 |
| 2025-03-31 | -32.4873 | -26.9338 |
| 2025-04-01 | -30.5240 | -22.6709 |
| 2025-04-02 | -28.0446 | -18.1270 |
| 2025-04-03 | -26.4202 | -19.9224 |
| 2025-04-04 | -26.3621 | -26.1298 |
| 2025-04-07 | -27.5690 | -32.3968 |
| 2025-04-08 | -29.9860 | -39.6538 |
| 2025-04-09 | -31.4824 | -37.4683 |
| 2025-04-10 | -32.3400 | -35.7701 |
| 2025-04-11 | -32.2973 | -32.1266 |
| 2025-04-14 | -31.2660 | -27.1407 |
| 2025-04-15 | -29.4935 | -22.4035 |
| 2025-04-16 | -27.6409 | -20.2304 |
| 2025-04-17 | -25.7602 | -18.2378 |
| 2025-04-21 | -24.0882 | -17.4002 |
| 2025-04-22 | -22.0982 | -14.1380 |
| 2025-04-23 | -19.5090 | -9.1522 |
| 2025-04-24 | -16.2073 | -3.0005 |
| 2025-04-25 | -12.2861 | 3.3989 |
| 2025-04-28 | -7.9389 | 9.4498 |
| 2025-04-29 | -3.5060 | 14.2256 |
| 2025-04-30 | 0.8805 | 18.4267 |
| 2025-05-01 | 5.1158 | 22.0571 |
| 2025-05-02 | 8.7635 | 23.3541 |
| 2025-05-05 | 11.4305 | 22.0983 |
| 2025-05-06 | 13.1251 | 19.9038 |
| 2025-05-07 | 13.8584 | 16.7915 |
| 2025-05-08 | 13.7597 | 13.3652 |
| 2025-05-09 | 13.0450 | 10.1861 |
| 2025-05-12 | 12.6450 | 11.0449 |
| 2025-05-13 | 12.9020 | 13.9298 |
| 2025-05-14 | 13.7698 | 17.2414 |
| 2025-05-15 | 15.0822 | 20.3316 |
| 2025-05-16 | 16.7089 | 23.2157 |
| 2025-05-19 | 18.3848 | 25.0882 |
| 2025-05-20 | 19.9009 | 25.9657 |
| 2025-05-21 | 20.8683 | 24.7379 |
| 2025-05-22 | 21.2108 | 22.5805 |
| 2025-05-23 | 20.5392 | 17.8526 |
| 2025-05-27 | 19.2862 | 14.2745 |
| 2025-05-28 | 17.6803 | 11.2566 |
| 2025-05-29 | 15.8089 | 8.3235 |
| 2025-05-30 | 13.8230 | 5.8795 |
| 2025-06-02 | 11.8637 | 4.0265 |
| 2025-06-03 | 10.1508 | 3.2992 |
| 2025-06-04 | 8.6907 | 2.8500 |
| 2025-06-05 | 7.4004 | 2.2393 |
| 2025-06-06 | 6.5788 | 3.2926 |
| 2025-06-09 | 6.0803 | 4.0861 |
| 2025-06-10 | 5.9773 | 5.5654 |
| 2025-06-11 | 5.8516 | 5.3489 |
| 2025-06-12 | 5.4748 | 3.9675 |
| 2025-06-13 | 4.5800 | 1.0008 |
| 2025-06-16 | 3.3817 | -1.4113 |
| 2025-06-17 | 1.6956 | -5.0492 |
| 2025-06-18 | -0.3358 | -8.4612 |
| 2025-06-20 | -2.0851 | -9.0822 |
| 2025-06-23 | -3.3576 | -8.4477 |
| 2025-06-24 | -4.3056 | -8.0979 |
| 2025-06-25 | -4.8503 | -7.0290 |
| 2025-06-26 | -5.1038 | -6.1175 |
| 2025-06-27 | -5.0304 | -4.7369 |
| 2025-06-30 | -4.2922 | -1.3394 |
| 2025-07-01 | -2.7465 | 3.4364 |
| 2025-07-02 | -0.1208 | 10.3821 |
| 2025-07-03 | 3.4363 | 17.6647 |
| 2025-07-07 | 7.0316 | 21.4127 |
| 2025-07-08 | 10.3966 | 23.8564 |
| 2025-07-09 | 13.5211 | 26.0194 |
| 2025-07-10 | 16.4720 | 28.2756 |
| 2025-07-11 | 19.0964 | 29.5939 |
| 2025-07-14 | 21.0730 | 28.9793 |
| 2025-07-15 | 22.4809 | 28.1127 |
| 2025-07-16 | 23.5579 | 27.8656 |
| 2025-07-17 | 24.3932 | 27.7347 |
| 2025-07-18 | 24.8763 | 26.8088 |
| 2025-07-21 | 25.1442 | 26.2158 |
| 2025-07-22 | 25.5199 | 27.0226 |
| 2025-07-23 | 26.0403 | 28.1219 |
| 2025-07-24 | 26.6795 | 29.2364 |
| 2025-07-25 | 27.4302 | 30.4330 |
| 2025-07-28 | 28.2818 | 31.6882 |
| 2025-07-29 | 28.7797 | 30.7711 |
| 2025-07-30 | 28.4930 | 27.3462 |
| 2025-07-31 | 27.2009 | 22.0323 |
| 2025-08-01 | 24.5352 | 13.8728 |
| 2025-08-04 | 20.8730 | 6.2240 |
| 2025-08-05 | 16.4780 | -1.1019 |
| 2025-08-06 | 13.2750 | 0.4631 |
| 2025-08-07 | 12.1836 | 7.8176 |
| 2025-08-08 | 13.4620 | 18.5756 |
| 2025-08-11 | 16.2010 | 27.1572 |
| 2025-08-12 | 20.0656 | 35.5240 |
| 2025-08-13 | 24.6869 | 43.1722 |
| 2025-08-14 | 29.5931 | 49.2177 |
| 2025-08-15 | 34.3698 | 53.4769 |
| 2025-08-18 | 38.7832 | 56.4368 |
| 2025-08-19 | 42.7425 | 58.5798 |
| 2025-08-20 | 45.8385 | 58.2223 |
| 2025-08-21 | 48.0092 | 56.6921 |
| 2025-08-22 | 49.5793 | 55.8598 |
| 2025-08-25 | 50.4601 | 53.9834 |
| 2025-08-26 | 50.8643 | 52.4808 |
| 2025-08-27 | 50.9166 | 51.1258 |
| 2025-08-28 | 50.8887 | 50.7771 |
| 2025-08-29 | 50.8250 | 50.5703 |
| 2025-09-02 | 50.5002 | 49.2011 |
| 2025-09-03 | 50.5049 | 50.5237 |
| 2025-09-04 | 50.9981 | 52.9708 |
| 2025-09-05 | 51.8114 | 55.0646 |
| 2025-09-08 | 52.6468 | 55.9884 |
| 2025-09-09 | 53.0389 | 54.6073 |
| 2025-09-10 | 52.1009 | 48.3491 |
| 2025-09-11 | 50.1938 | 42.5651 |
| 2025-09-12 | 48.0329 | 39.3894 |
| 2025-09-15 | 46.1090 | 38.4134 |
| 2025-09-16 | 44.6849 | 38.9883 |
| 2025-09-17 | 43.8513 | 40.5169 |
| 2025-09-18 | 43.4113 | 41.6515 |
| 2025-09-19 | 43.7207 | 44.9582 |
| 2025-09-22 | 45.0373 | 50.3038 |
| 2025-09-23 | 46.9108 | 54.4046 |
| 2025-09-24 | 48.8553 | 56.6333 |
| 2025-09-25 | 51.1527 | 60.3421 |
| 2025-09-26 | 53.5889 | 63.3340 |
| 2025-09-29 | 55.9369 | 65.3287 |
| 2025-09-30 | 58.1074 | 66.7893 |
| 2025-10-01 | 59.9841 | 67.4910 |
| 2025-10-02 | 61.7033 | 68.5802 |
| 2025-10-03 | 63.3507 | 69.9401 |
| 2025-10-06 | 64.8271 | 70.7326 |
| 2025-10-07 | 66.0598 | 70.9905 |
| 2025-10-08 | 67.1022 | 71.2718 |
| 2025-10-09 | 67.5695 | 69.4387 |
| 2025-10-10 | 66.6748 | 63.0961 |
| 2025-10-13 | 64.6638 | 56.6201 |
| 2025-10-14 | 61.7988 | 50.3389 |
| 2025-10-15 | 58.4639 | 45.1243 |
| 2025-10-16 | 54.6520 | 39.4041 |
| 2025-10-17 | 50.9856 | 36.3202 |
| 2025-10-20 | 48.3313 | 37.7142 |
| 2025-10-21 | 46.7365 | 40.3572 |
| 2025-10-22 | 45.5685 | 40.8964 |
| 2025-10-23 | 44.7284 | 41.3683 |
| 2025-10-24 | 44.4822 | 43.4971 |
| 2025-10-27 | 45.1157 | 47.6496 |
| 2025-10-28 | 46.4655 | 51.8648 |
| 2025-10-29 | 48.2617 | 55.4463 |
| 2025-10-30 | 50.2762 | 58.3344 |
| 2025-10-31 | 52.0321 | 59.0557 |
| 2025-11-03 | 53.3270 | 58.5063 |
| 2025-11-04 | 54.2392 | 57.8882 |
| 2025-11-05 | 54.7076 | 56.5810 |
| 2025-11-06 | 54.7571 | 54.9553 |
| 2025-11-07 | 54.3516 | 52.7296 |
| 2025-11-10 | 53.6162 | 50.6745 |
| 2025-11-11 | 53.1388 | 51.2290 |
| 2025-11-12 | 52.7466 | 51.1777 |
| 2025-11-13 | 52.2949 | 50.4885 |
| 2025-11-14 | 51.6987 | 49.3137 |
| 2025-11-17 | 50.4513 | 45.4618 |
| 2025-11-18 | 48.5171 | 40.7801 |
| 2025-11-19 | 46.1382 | 36.6228 |
| 2025-11-20 | 43.1876 | 31.3854 |
| 2025-11-21 | 40.3329 | 28.9140 |
| 2025-11-24 | 38.2562 | 29.9492 |
| 2025-11-25 | 36.8878 | 31.4142 |
| 2025-11-26 | 36.1720 | 33.3090 |
| 2025-11-28 | 36.1504 | 36.0637 |
| 2025-12-01 | 36.9786 | 40.2918 |
| 2025-12-02 | 38.5496 | 44.8333 |
| 2025-12-03 | 40.3061 | 47.3323 |
| 2025-12-04 | 41.6516 | 47.0336 |
| 2025-12-05 | 42.2963 | 44.8751 |
| 2025-12-08 | 42.2032 | 41.8310 |
| 2025-12-09 | 41.4314 | 38.3442 |
| 2025-12-10 | 40.3115 | 35.8319 |
| 2025-12-11 | 38.7405 | 32.4565 |
| 2025-12-12 | 36.6978 | 28.5270 |
| 2025-12-15 | 33.8469 | 22.4433 |
| 2025-12-16 | 30.3586 | 16.4053 |
| 2025-12-17 | 26.1148 | 9.1394 |
| 2025-12-18 | 21.5457 | 3.2692 |
| 2025-12-19 | 17.0473 | -0.9463 |
| 2025-12-22 | 12.6696 | -4.8408 |
| 2025-12-23 | 8.7767 | -6.7950 |
| 2025-12-24 | 5.6181 | -7.0164 |
| 2025-12-26 | 3.1130 | -6.9074 |
| 2025-12-29 | 1.1939 | -6.4822 |
| 2025-12-30 | -0.3191 | -6.3714 |
| 2025-12-31 | -1.6769 | -7.1080 |
502 rows
Parameters
get_stochastic_momentum_index accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The time period to consider for historical data. Options are: “intraday” (intraday prices), “daily” (daily prices), “weekly” (weekly prices), “monthly” (monthly prices), “quarterly” (quarterly prices), “yearly” (yearly prices). Defaults to “daily”. | "weekly" |
close_column | str | The column name for closing prices in the historical data. Defaults to “Adj Close”, in which case the high and low prices are adjusted for dividends in the same way. | "Close" |
window | int | The number of periods of the high-low range. Defaults to 13. | 20 |
long_window | int | The number of periods of the first EMA of the distance and the range. Defaults to 25. | 25 |
short_window | int | The number of periods of the second EMA. Defaults to 2. | 2 |
signal_window | int | The number of periods of the EMA of the SMI that gives the signal line. Defaults to 9. | 9 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the SMI and signal line. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Blau, W. (1993). “Stochastic Momentum.” Technical Analysis of Stocks & Commodities, 11(1).
- Paper Blau, W. (1995). “Momentum, Direction, and Divergence.” Wiley.
- Library Referenced against TA-Lib’s SMI