Question: During July 02, 2024 to January 15, 2025, count the number of times Aflac's close price break above the 20-day Weighted Moving Average line. (Weights are 1, 2, ..., n) Using unadjusted prices, write down the indicator formula, collect the raw data, calculate the answer, and keep four decimal places. Please list the raw data and key calculation process.
Formula: WMA_n = \sum_{i=0}^{n-1} (n-i) * P_{t-i} / \sum_{j=1}^{n} j
Data:
date,close,open,low,high
2024-06-04,88.04000091552734,88.4800033569336,87.83000183105469,89.23999786376953
2024-06-05,88.37999725341797,88.1500015258789,87.69999694824219,88.66999816894531
2024-06-06,88.3499984741211,88.44999694824219,87.91000366210938,89.01000213623047
2024-06-07,88.79000091552734,88.45999908447266,88.08000183105469,89.29000091552734
2024-06-10,88.4000015258789,88.66999816894531,87.94000244140625,88.75
2024-06-11,87.56999969482422,87.95999908447266,87.08000183105469,88.29000091552734
2024-06-12,88.19000244140625,87.69999694824219,87.12000274658203,88.29000091552734
2024-06-13,87.30999755859375,88.0,87.02999877929688,88.0
2024-06-14,87.04000091552734,86.69000244140625,86.45999908447266,87.30999755859375
2024-06-17,87.95999908447266,86.94000244140625,86.55000305175781,88.0
2024-06-18,88.98999786376953,87.87000274658203,87.68000030517578,89.01000213623047
2024-06-20,89.76000213623047,88.98999786376953,88.69999694824219,90.05000305175781
2024-06-21,89.66999816894531,89.7699966430664,89.52999877929688,90.23999786376952
2024-06-24,90.43000030517578,89.5,89.06999969482422,91.1500015258789
2024-06-25,90.01000213623047,90.43000030517578,89.79000091552734,90.93000030517578
2024-06-26,89.22000122070312,89.37000274658203,88.23999786376953,89.69999694824219
2024-06-27,89.16000366210938,89.3499984741211,88.70999908447266,89.36000061035156
2024-06-28,89.30999755859375,89.3499984741211,88.83000183105469,90.20999908447266
2024-07-01,89.05999755859375,89.81999969482422,88.9000015258789,90.2699966430664
2024-07-02,89.43000030517578,88.47000122070312,88.19999694824219,89.51000213623047
2024-07-03,89.08999633789062,89.12999725341797,89.04000091552734,89.73999786376953
2024-07-05,89.05000305175781,89.0,88.54000091552734,89.05999755859375
2024-07-08,88.5199966430664,89.22000122070312,88.45999908447266,89.83000183105469
2024-07-09,88.93000030517578,88.5199966430664,88.0,89.63999938964844
2024-07-10,90.20999908447266,88.93000030517578,88.69999694824219,90.25
2024-07-11,92.41999816894533,90.7699966430664,90.37999725341795,92.54000091552734
2024-07-12,92.63999938964844,92.86000061035156,91.98999786376952,93.08000183105467
2024-07-15,93.37000274658205,92.86000061035156,92.5999984741211,93.86000061035156
2024-07-16,93.5500030517578,93.51000213623048,93.2300033569336,94.45999908447266
2024-07-17,94.05999755859376,93.8000030517578,92.83000183105467,94.8499984741211
2024-07-18,94.29000091552734,93.73999786376952,93.27999877929688,95.48999786376952
2024-07-19,92.91000366210938,94.41999816894533,92.44000244140624,94.44000244140624
2024-07-22,94.5,93.1500015258789,93.0,94.55999755859376
2024-07-23,94.31999969482422,94.4800033569336,93.95999908447266,94.63999938964844
2024-07-24,94.13999938964844,94.6500015258789,93.72000122070312,94.83000183105467
2024-07-25,94.12000274658205,94.7300033569336,94.0,95.45999908447266
2024-07-26,94.81999969482422,94.12000274658205,94.02999877929688,95.25
2024-07-29,94.54000091552734,94.88999938964844,94.06999969482422,95.31999969482422
2024-07-30,95.36000061035156,95.01000213623048,94.91000366210938,96.2300033569336
2024-07-31,95.37999725341795,95.36000061035156,94.87000274658205,95.97000122070312
2024-08-01,101.6500015258789,104.37999725341795,100.86000061035156,104.91000366210938
2024-08-02,99.23999786376952,100.29000091552734,97.54000091552734,101.76000213623048
2024-08-05,97.16999816894533,99.1999969482422,95.97000122070312,99.1999969482422
2024-08-06,98.5999984741211,97.2699966430664,96.1500015258789,99.04000091552734
2024-08-07,99.29000091552734,98.91000366210938,98.66000366210938,100.04000091552734
2024-08-08,100.86000061035156,99.5500030517578,98.88999938964844,101.05999755859376
2024-08-09,101.20999908447266,101.0500030517578,100.33000183105467,101.44000244140624
2024-08-12,101.19000244140624,101.52999877929688,101.0,101.8000030517578
2024-08-13,101.7300033569336,101.4800033569336,100.77999877929688,101.8499984741211
2024-08-14,102.37000274658205,102.0,101.86000061035156,102.86000061035156
2024-08-15,102.54000091552734,102.66000366210938,102.12000274658205,103.2699966430664
2024-08-16,104.76000213623048,102.83999633789062,102.16000366210938,104.83999633789062
2024-08-19,105.20999908447266,104.61000061035156,104.3499984741211,105.38999938964844
2024-08-20,104.8000030517578,105.1999969482422,104.62000274658205,105.6500015258789
2024-08-21,105.33999633789062,104.41000366210938,104.41000366210938,105.8000030517578
2024-08-22,106.61000061035156,105.31999969482422,105.25,106.63999938964844
2024-08-23,107.33999633789062,106.98999786376952,106.23999786376952,107.4800033569336
2024-08-26,107.51000213623048,107.4800033569336,107.33999633789062,108.30999755859376
2024-08-27,107.70999908447266,107.79000091552734,107.11000061035156,108.26000213623048
2024-08-28,108.83000183105467,107.8499984741211,107.8499984741211,109.33999633789062
2024-08-29,109.62999725341795,108.83000183105467,108.12000274658205,109.87000274658205
2024-08-30,110.36000061035156,109.69000244140624,109.41999816894533,110.68000030517578
2024-09-03,109.06999969482422,110.2699966430664,108.55999755859376,110.8000030517578
2024-09-04,110.48999786376952,109.95999908447266,109.0,111.13999938964844
2024-09-05,109.69000244140624,110.52999877929688,108.27999877929688,110.86000061035156
2024-09-06,108.88999938964844,109.76000213623048,108.5199966430664,110.8000030517578
2024-09-09,109.4000015258789,109.3000030517578,108.61000061035156,109.77999877929688
2024-09-10,108.44000244140624,109.75,108.23999786376952,110.25
2024-09-11,107.36000061035156,108.06999969482422,105.7300033569336,108.37999725341795
2024-09-12,107.97000122070312,107.43000030517578,106.93000030517578,108.08999633789062
2024-09-13,108.58999633789062,108.25,108.05999755859376,108.8000030517578
2024-09-16,110.16999816894533,109.29000091552734,108.86000061035156,110.2699966430664
2024-09-17,109.55999755859376,110.0,109.12000274658205,110.25
2024-09-18,108.95999908447266,109.72000122070312,108.87000274658205,110.5500030517578
2024-09-19,107.87000274658205,109.33000183105467,107.80999755859376,109.44000244140624
2024-09-20,107.91999816894533,107.58000183105467,107.06999969482422,108.11000061035156
2024-09-23,110.0199966430664,108.2300033569336,108.2300033569336,110.11000061035156
2024-09-24,109.0999984741211,109.25,108.77999877929688,109.61000061035156
2024-09-25,109.69000244140624,109.58999633789062,108.86000061035156,110.36000061035156
2024-09-26,110.06999969482422,109.19000244140624,109.19000244140624,110.87000274658205
2024-09-27,110.58999633789062,110.0199966430664,109.68000030517578,110.97000122070312
2024-09-30,111.8000030517578,110.70999908447266,110.0199966430664,112.0999984741211
2024-10-01,112.81999969482422,111.7699966430664,111.13999938964844,112.95999908447266
2024-10-02,114.2300033569336,113.05999755859376,112.43000030517578,114.31999969482422
2024-10-03,113.52999877929688,114.12000274658205,112.83000183105467,114.37000274658205
2024-10-04,115.26000213623048,114.11000061035156,113.75,115.5
2024-10-07,111.83999633789062,114.97000122070312,111.04000091552734,114.97000122070312
2024-10-08,112.47000122070312,112.27999877929688,112.01000213623048,112.93000030517578
2024-10-09,111.05999755859376,112.2300033569336,110.47000122070312,112.48999786376952
2024-10-10,111.61000061035156,112.16999816894533,111.25,112.76000213623048
2024-10-11,113.26000213623048,112.0999984741211,112.0999984741211,113.66999816894533
2024-10-14,114.06999969482422,113.5999984741211,113.25,114.22000122070312
2024-10-15,113.98999786376952,114.27999877929688,113.83000183105467,115.12999725341795
2024-10-16,114.37999725341795,113.83999633789062,113.54000091552734,114.5
2024-10-17,114.98999786376952,115.29000091552734,114.4499969482422,115.3499984741211
2024-10-18,114.5,115.44000244140624,113.91000366210938,115.44000244140624
2024-10-21,112.75,114.44000244140624,112.4499969482422,114.69000244140624
2024-10-22,112.16000366210938,112.4800033569336,111.16999816894533,112.73999786376952
2024-10-23,112.13999938964844,111.9800033569336,111.69000244140624,112.63999938964844
2024-10-24,112.01000213623048,112.45999908447266,111.58000183105467,112.69000244140624
2024-10-25,109.75,112.01000213623048,108.9800033569336,112.2300033569336
2024-10-28,109.79000091552734,110.0,109.48999786376952,110.58999633789062
2024-10-29,110.0,109.5,109.22000122070312,110.36000061035156
2024-10-30,110.08999633789062,109.9499969482422,109.5500030517578,110.80999755859376
2024-10-31,104.79000091552734,107.19000244140624,104.08999633789062,108.23999786376952
2024-11-01,104.70999908447266,105.29000091552734,104.31999969482422,106.69000244140624
2024-11-04,104.51000213623048,105.05999755859376,104.0500030517578,105.2300033569336
2024-11-05,105.55999755859376,104.38999938964844,104.0,105.58999633789062
2024-11-06,108.55999755859376,109.69000244140624,106.91999816894533,109.86000061035156
2024-11-07,107.44000244140624,108.27999877929688,107.27999877929688,108.3499984741211
2024-11-08,108.2699966430664,108.33000183105467,107.87000274658205,108.70999908447266
2024-11-11,110.43000030517578,108.86000061035156,108.22000122070312,110.9000015258789
2024-11-12,110.6500015258789,110.19000244140624,110.04000091552734,111.13999938964844
2024-11-13,110.44000244140624,110.41999816894533,110.2699966430664,111.08999633789062
2024-11-14,109.68000030517578,110.0,109.12000274658205,110.52999877929688
2024-11-15,111.31999969482422,109.87999725341795,108.87000274658205,111.91000366210938
2024-11-18,112.04000091552734,111.31999969482422,111.06999969482422,112.25
2024-11-19,111.12999725341795,110.9000015258789,110.06999969482422,111.52999877929688
2024-11-20,110.23999786376952,110.97000122070312,109.77999877929688,111.16000366210938
2024-11-21,111.7300033569336,111.0,110.41999816894533,112.33000183105467
2024-11-22,112.38999938964844,112.16999816894533,112.1500015258789,113.1500015258789
2024-11-25,113.1999969482422,112.76000213623048,112.4499969482422,113.9800033569336
2024-11-26,114.0199966430664,112.7300033569336,112.33000183105467,114.33000183105467
2024-11-27,114.0999984741211,114.5,113.94000244140624,115.43000030517578
2024-11-29,114.0,114.01000213623048,113.9000015258789,115.06999969482422
2024-12-02,111.4000015258789,114.16999816894533,111.11000061035156,114.5999984741211
2024-12-03,106.76000213623048,112.23999786376952,106.73999786376952,112.23999786376952
2024-12-04,106.98999786376952,105.91999816894533,105.0,107.25
2024-12-05,107.75,107.4000015258789,107.16000366210938,108.52999877929688
2024-12-06,107.30999755859376,107.7699966430664,107.08999633789062,108.3499984741211
2024-12-09,105.0,106.87000274658205,104.66999816894533,107.0
2024-12-10,104.22000122070312,104.37000274658205,102.77999877929688,104.87000274658205
2024-12-11,104.20999908447266,104.43000030517578,103.75,104.76000213623048
2024-12-12,104.37999725341795,104.98999786376952,104.31999969482422,105.54000091552734
2024-12-13,104.5199966430664,104.55999755859376,104.1999969482422,105.30999755859376
2024-12-16,103.80999755859376,104.33999633789062,103.75,104.62999725341795
2024-12-17,102.75,103.0,102.33000183105467,103.6999969482422
2024-12-18,100.37000274658205,102.5199966430664,100.3000030517578,103.31999969482422
2024-12-19,101.25,100.91000366210938,100.58999633789062,102.08999633789062
2024-12-20,102.69000244140624,101.04000091552734,100.6500015258789,103.16999816894533
2024-12-23,102.73999786376952,102.05999755859376,101.77999877929688,102.93000030517578
2024-12-24,103.23999786376952,102.8000030517578,102.13999938964844,103.41000366210938
2024-12-26,103.66000366210938,102.75,102.51000213623048,104.0199966430664
2024-12-27,103.37999725341795,103.18000030517578,102.73999786376952,104.4499969482422
2024-12-30,102.97000122070312,102.27999877929688,101.75,103.58999633789062
2024-12-31,103.44000244140624,103.04000091552734,103.04000091552734,103.88999938964844
2025-01-02,102.36000061035156,103.61000061035156,101.97000122070312,104.04000091552734
2025-01-03,103.16000366210938,102.56999969482422,102.16999816894533,103.3499984741211
2025-01-06,101.79000091552734,103.0500030517578,101.48999786376952,103.79000091552734
2025-01-07,102.83999633789062,101.9800033569336,101.79000091552734,103.6999969482422
2025-01-08,103.56999969482422,103.01000213623048,102.04000091552734,103.5999984741211
2025-01-10,100.98999786376952,102.36000061035156,100.23999786376952,102.6999969482422
2025-01-13,102.48999786376952,100.95999908447266,100.0,102.9499969482422
2025-01-14,103.6500015258789,102.79000091552734,102.38999938964844,103.68000030517578
2025-01-15,104.79000091552734,105.18000030517578,104.41000366210938,105.18000030517578

Indicator data:
date,20-day,close
2024-07-02,89.05071432931082,89.43000030517578
2024-07-03,89.08276160103934,89.08999633789062
2024-07-05,89.10600001017252,89.05000305175781
2024-07-08,89.07557111467634,88.5199966430664
2024-07-09,89.08338067190988,88.93000030517578
2024-07-10,89.2124282110305,90.20999908447266
2024-07-11,89.54333281744094,92.41999816894533
2024-07-12,89.87209469023205,92.63999938964844
2024-07-15,90.24919023059664,93.37000274658205
2024-07-16,90.61457148960659,93.5500030517578
2024-07-17,90.99752364385695,94.05999755859376
2024-07-18,91.37333326793852,94.29000091552734
2024-07-19,91.59247647240048,92.91000366210938
2024-07-22,91.9480478922526,94.5
2024-07-23,92.2634764171782,94.31999969482422
2024-07-24,92.5432382492792,94.13999938964844
2024-07-25,92.8014289855957,94.12000274658205
2024-07-26,93.10295275733584,94.81999969482422
2024-07-29,93.35085761660622,94.54000091552734
2024-07-30,93.6519529070173,95.36000061035156
2024-07-31,93.924952625093,95.37999725341795
2024-08-01,94.76676228841146,101.6500015258789
2024-08-02,95.31923824491955,99.23999786376952
2024-08-05,95.62604758853004,97.16999816894533
2024-08-06,96.02785695393881,98.5999984741211
2024-08-07,96.44933322724842,99.29000091552734
2024-08-08,96.97709517706008,100.86000061035156
2024-08-09,97.49799982706706,101.20999908447266
2024-08-12,97.97619051252093,101.19000244140624
2024-08-13,98.46857176281156,101.7300033569336
2024-08-14,98.98295295352028,102.37000274658205
2024-08-15,99.47395299275716,102.54000091552734
2024-08-16,100.13709600539434,104.76000213623048
2024-08-19,100.78666730608259,105.20999908447266
2024-08-20,101.34619136991955,104.8000030517578
2024-08-21,101.907238587879,105.33999633789062
2024-08-22,102.53590527489072,106.61000061035156
2024-08-23,103.17461918422154,107.33999633789062
2024-08-26,103.76990509033203,107.51000213623048
2024-08-27,104.32247641427176,107.70999908447266
2024-08-28,104.92290514991397,108.83000183105467
2024-08-29,105.53547628493536,109.62999725341795
2024-08-30,106.17957156953358,110.36000061035156
2024-09-03,106.64785723005022,109.06999969482422
2024-09-04,107.19471413748605,110.48999786376952
2024-09-05,107.6087619599842,109.69000244140624
2024-09-06,107.89709519885835,108.88999938964844
2024-09-09,108.19576198032924,109.4000015258789
2024-09-10,108.3640002659389,108.44000244140624
2024-09-11,108.39485742478143,107.36000061035156
2024-09-12,108.45700036911737,107.97000122070312
2024-09-13,108.5515238080706,108.58999633789062
2024-09-16,108.7677141098749,110.16999816894533
2024-09-17,108.9000472295852,109.55999755859376
2024-09-18,108.95452335902623,108.95999908447266
2024-09-19,108.88538080851237,107.87000274658205
2024-09-20,108.80895207722982,107.91999816894533
2024-09-23,108.92628511701311,110.0199966430664
2024-09-24,108.9432373773484,109.0999984741211
2024-09-25,109.00880908057803,109.69000244140624
2024-09-26,109.10114241100493,110.06999969482422
2024-09-27,109.23709447951543,110.58999633789062
2024-09-30,109.48371385846819,111.8000030517578
2024-10-01,109.82061862037295,112.81999969482422
2024-10-02,110.2739523024786,114.2300033569336
2024-10-03,110.64280933198475,113.52999877929688
2024-10-04,111.15814288911365,115.26000213623048
2024-10-07,111.31742826189314,111.83999633789062
2024-10-08,111.52509507678803,112.47000122070312
2024-10-09,111.5792853582473,111.05999755859376
2024-10-10,111.66823784964426,111.61000061035156
2024-10-11,111.89700001307897,113.26000213623048
2024-10-14,112.18066667829241,114.06999969482422
2024-10-15,112.43814268566314,113.98999786376952
2024-10-16,112.71166625249954,114.37999725341795
2024-10-17,113.01747560046968,114.98999786376952
2024-10-18,113.2427137465704,114.5
2024-10-21,113.26995188395182,112.75
2024-10-22,113.22799987792969,112.16000366210938
2024-10-23,113.16957124982561,112.13999938964844
2024-10-24,113.08709527878534,112.01000213623048
2024-10-25,112.78014290219261,109.75
2024-10-28,112.48100011916388,109.79000091552734
2024-10-29,112.21142868768601,110.0
2024-10-30,111.96385690598261,110.08999633789062
2024-10-31,111.231237974621,104.79000091552734
2024-11-01,110.5326188587007,104.70999908447266
2024-11-04,109.86519052414667,104.51000213623048
2024-11-05,109.33266648792085,105.55999755859376
2024-11-06,109.1187615167527,108.55999755859376
2024-11-07,108.8100951058524,107.44000244140624
2024-11-08,108.60033289591472,108.2699966430664
2024-11-11,108.62004725138347,110.43000030517578
2024-11-12,108.67804743448893,110.6500015258789
2024-11-13,108.73195244925363,110.44000244140624
2024-11-14,108.73223818824405,109.68000030517578
2024-11-15,108.9140000479562,111.31999969482422
2024-11-18,109.17947631109328,112.04000091552734
2024-11-19,109.36166650681268,111.12999725341795
2024-11-20,109.46399964832125,110.23999786376952
2024-11-21,109.71728570120675,111.7300033569336
2024-11-22,110.03476184663319,112.38999938964844
2024-11-25,110.4168091910226,113.1999969482422
2024-11-26,110.86071366809664,114.0199966430664
2024-11-27,111.29309452601842,114.0999984741211
2024-11-29,111.69685647147043,114.0
2024-12-02,111.8091423761277,111.4000015258789
2024-12-03,111.44766642252604,106.76000213623048
2024-12-04,111.09738053821383,106.98999786376952
2024-12-05,110.81266628447032,107.75
2024-12-06,110.4899041675386,107.30999755859376
2024-12-09,109.94776135399228,105.0
2024-12-10,109.34690435500372,104.22000122070312
2024-12-11,108.77466619582404,104.20999908447266
2024-12-12,108.24928501674107,104.37999725341795
2024-12-13,107.76609428042457,104.5199966430664
2024-12-16,107.23985602969215,103.80999755859376
2024-12-17,106.64842754545666,102.75
2024-12-18,105.8745707557315,100.37000274658205
2024-12-19,105.23576129731678,101.25
2024-12-20,104.7769044421968,102.69000244140624
2024-12-23,104.3658566792806,102.73999786376952
2024-12-24,104.04838035220192,103.23999786376952
2024-12-26,103.81833314441499,103.66000366210938
2024-12-27,103.61095195951916,103.37999725341795
2024-12-30,103.41557115827288,102.97000122070312
2024-12-31,103.31747618175689,103.44000244140624
2025-01-02,103.1544286455427,102.36000061035156
2025-01-03,103.08852426438105,103.16000366210938
2025-01-06,102.91038149879093,101.79000091552734
2025-01-07,102.8606192452567,102.83999633789062
2025-01-08,102.90166684105283,103.56999969482422
2025-01-10,102.70380950201125,100.98999786376952
2025-01-13,102.66419027419317,102.48999786376952
2025-01-14,102.74323806762695,103.6500015258789
2025-01-15,102.93433340163458,104.79000091552734

Answer: 9.0