Question: During May 28, 2024 to November 16, 2024, what percentage of trading days showed long alignment of Jack Henry & Associates's 5, 10, 20-day Weighted Moving Average lines? (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-04-30,162.69000244140625,165.02999877929688,162.24000549316406,165.0399932861328
2024-05-01,162.52000427246094,162.5800018310547,162.1999969482422,164.38999938964844
2024-05-02,162.50999450683594,163.16000366210938,161.0,164.0
2024-05-03,164.17999267578125,163.07000732421875,162.42999267578125,164.49000549316406
2024-05-06,164.9600067138672,165.0,163.3699951171875,165.7100067138672
2024-05-07,165.64999389648438,165.9499969482422,164.60000610351562,167.32000732421875
2024-05-08,165.58999633789062,166.8699951171875,165.14999389648438,172.47000122070312
2024-05-09,169.0399932861328,166.19000244140625,165.88999938964844,169.1300048828125
2024-05-10,169.24000549316406,169.1699981689453,167.9600067138672,169.9600067138672
2024-05-13,167.72000122070312,170.0,167.02000427246094,170.1999969482422
2024-05-14,165.69000244140625,168.24000549316406,163.25999450683594,168.24000549316406
2024-05-15,167.8300018310547,166.61000061035156,165.91000366210938,167.9499969482422
2024-05-16,169.3800048828125,167.8300018310547,167.1199951171875,169.85000610351562
2024-05-17,168.99000549316406,169.66000366210938,167.0500030517578,169.66000366210938
2024-05-20,169.4499969482422,168.9600067138672,167.77999877929688,170.17999267578125
2024-05-21,169.0800018310547,169.69000244140625,168.22000122070312,170.0800018310547
2024-05-22,169.6300048828125,168.80999755859375,168.64999389648438,170.2100067138672
2024-05-23,168.3300018310547,169.4199981689453,167.9199981689453,169.72000122070312
2024-05-24,168.61000061035156,168.25999450683594,167.22999572753906,168.72999572753906
2024-05-28,162.57000732421875,167.9199981689453,161.8699951171875,167.9199981689453
2024-05-29,161.52999877929688,161.11000061035156,160.17999267578125,162.6199951171875
2024-05-30,161.14999389648438,161.52999877929688,160.1699981689453,162.52000427246094
2024-05-31,164.67999267578125,161.42999267578125,160.69000244140625,164.77000427246094
2024-06-03,163.25999450683594,164.1199951171875,161.66000366210938,165.41000366210938
2024-06-04,161.6999969482422,162.33999633789062,161.30999755859375,163.9499969482422
2024-06-05,164.3800048828125,162.36000061035156,161.4499969482422,164.75
2024-06-06,164.5500030517578,164.64999389648438,164.2899932861328,165.88999938964844
2024-06-07,164.77999877929688,164.0,163.44000244140625,165.44000244140625
2024-06-10,164.0500030517578,164.64999389648438,161.64999389648438,164.75999450683594
2024-06-11,161.52999877929688,163.33999633789062,161.19000244140625,164.47000122070312
2024-06-12,160.2100067138672,162.55999755859375,160.08999633789062,163.05999755859375
2024-06-13,158.5500030517578,159.5800018310547,157.0,159.82000732421875
2024-06-14,161.57000732421875,158.02999877929688,157.9199981689453,161.66000366210938
2024-06-17,165.0399932861328,161.0,160.0399932861328,165.60000610351562
2024-06-18,162.2100067138672,165.17999267578125,162.00999450683594,165.75999450683594
2024-06-20,165.8800048828125,162.0,161.86000061035156,166.58999633789062
2024-06-21,166.74000549316406,166.3800048828125,165.14999389648438,167.33999633789062
2024-06-24,166.42999267578125,166.33999633789062,165.85000610351562,168.4199981689453
2024-06-25,166.36000061035156,166.69000244140625,164.5500030517578,167.0500030517578
2024-06-26,167.11000061035156,165.8699951171875,165.1699981689453,167.42999267578125
2024-06-27,166.72000122070312,167.0800018310547,166.0399932861328,168.19000244140625
2024-06-28,166.02000427246094,167.02000427246094,165.0,168.6999969482422
2024-07-01,163.49000549316406,166.63999938964844,162.44000244140625,167.02000427246094
2024-07-02,163.75999450683594,163.97000122070312,163.30999755859375,165.24000549316406
2024-07-03,163.64999389648438,163.38999938964844,162.30999755859375,164.41000366210938
2024-07-05,163.05999755859375,163.64999389648438,162.47999572753906,163.8300018310547
2024-07-08,164.33999633789062,163.2899932861328,162.82000732421875,164.99000549316406
2024-07-09,162.8800048828125,164.33999633789062,162.72999572753906,164.7100067138672
2024-07-10,160.8699951171875,162.91000366210938,158.6199951171875,162.91000366210938
2024-07-11,164.13999938964844,162.11000061035156,161.47999572753906,164.1999969482422
2024-07-12,166.27999877929688,164.9199981689453,164.75999450683594,167.6300048828125
2024-07-15,167.3699951171875,166.27000427246094,164.9199981689453,168.50999450683594
2024-07-16,169.74000549316406,168.2100067138672,167.39999389648438,170.67999267578125
2024-07-17,169.74000549316406,170.00999450683594,168.97000122070312,171.1300048828125
2024-07-18,168.0500030517578,168.74000549316406,167.86000061035156,171.44000244140625
2024-07-19,166.10000610351562,168.60000610351562,165.6300048828125,169.89999389648438
2024-07-22,168.94000244140625,166.72999572753906,165.97000122070312,169.3300018310547
2024-07-23,167.07000732421875,169.38999938964844,166.7100067138672,169.8000030517578
2024-07-24,167.92999267578125,167.07000732421875,166.67999267578125,169.0
2024-07-25,167.47999572753906,168.7899932861328,167.32000732421875,172.0
2024-07-26,170.3300018310547,168.07000732421875,168.00999450683594,170.5800018310547
2024-07-29,170.1699981689453,170.61000061035156,169.1999969482422,171.94000244140625
2024-07-30,172.41000366210938,170.97000122070312,169.39999389648438,172.8300018310547
2024-07-31,171.47999572753906,172.6999969482422,171.0,173.0399932861328
2024-08-01,169.07000732421875,171.39999389648438,168.3000030517578,172.05999755859375
2024-08-02,170.2100067138672,168.33999633789062,166.77999877929688,171.0800018310547
2024-08-05,163.8000030517578,168.8800048828125,163.58999633789062,169.0
2024-08-06,166.50999450683594,164.02000427246094,163.72999572753906,168.52000427246094
2024-08-07,166.00999450683594,167.27999877929688,165.02000427246094,169.50999450683594
2024-08-08,167.35000610351562,166.3699951171875,165.82000732421875,168.27000427246094
2024-08-09,166.44000244140625,167.5,166.02000427246094,168.49000549316406
2024-08-12,162.7100067138672,166.42999267578125,162.57000732421875,166.6300048828125
2024-08-13,165.16000366210938,163.17999267578125,162.08999633789062,165.22999572753906
2024-08-14,164.7899932861328,164.91000366210938,164.17999267578125,166.39999389648438
2024-08-15,164.77000427246094,165.42999267578125,162.77000427246094,166.5
2024-08-16,165.07000732421875,164.4199981689453,163.74000549316406,165.4499969482422
2024-08-19,164.08999633789062,165.52999877929688,163.27999877929688,165.88999938964844
2024-08-20,165.5500030517578,164.11000061035156,163.57000732421875,166.75999450683594
2024-08-21,165.4499969482422,162.0,160.22999572753906,167.66000366210938
2024-08-22,163.7899932861328,165.4199981689453,162.58999633789062,166.66000366210938
2024-08-23,164.6300048828125,164.1199951171875,163.3699951171875,164.85000610351562
2024-08-26,168.83999633789062,165.41000366210938,164.6300048828125,169.39999389648438
2024-08-27,171.38999938964844,168.83999633789062,168.1699981689453,171.6699981689453
2024-08-28,173.75999450683594,171.94000244140625,171.94000244140625,174.8699951171875
2024-08-29,171.88999938964844,174.60000610351562,171.67999267578125,174.60000610351562
2024-08-30,173.02999877929688,172.0800018310547,171.25,173.3300018310547
2024-09-03,175.0800018310547,173.02999877929688,173.02999877929688,177.6699981689453
2024-09-04,174.08999633789062,173.6699981689453,172.44000244140625,174.63999938964844
2024-09-05,173.2100067138672,174.97999572753906,171.6199951171875,174.97999572753906
2024-09-06,169.63999938964844,173.13999938964844,169.52999877929688,173.85000610351562
2024-09-09,171.89999389648438,170.67999267578125,170.3300018310547,173.6300048828125
2024-09-10,175.0399932861328,172.27000427246094,171.25,175.52000427246094
2024-09-11,174.00999450683594,174.77999877929688,170.32000732421875,174.8300018310547
2024-09-12,175.5399932861328,174.41000366210938,173.4499969482422,176.0
2024-09-13,176.07000732421875,175.97999572753906,175.16000366210938,176.55999755859375
2024-09-16,177.05999755859375,176.67999267578125,176.25,177.7100067138672
2024-09-17,175.69000244140625,176.8300018310547,175.0399932861328,177.5
2024-09-18,174.2100067138672,175.97000122070312,174.05999755859375,176.5
2024-09-19,175.60000610351562,176.13999938964844,173.99000549316406,176.13999938964844
2024-09-20,173.58999633789062,175.39999389648438,173.00999450683594,175.39999389648438
2024-09-23,174.85000610351562,174.1300048828125,173.7100067138672,175.89999389648438
2024-09-24,173.7100067138672,174.8699951171875,173.10000610351562,175.0500030517578
2024-09-25,170.27999877929688,174.14999389648438,169.99000549316406,174.14999389648438
2024-09-26,174.13999938964844,170.8000030517578,170.2899932861328,174.47000122070312
2024-09-27,175.99000549316406,174.02999877929688,174.02999877929688,176.89999389648438
2024-09-30,176.5399932861328,176.2899932861328,175.1300048828125,177.0800018310547
2024-10-01,179.6999969482422,176.77999877929688,175.00999450683594,181.07000732421875
2024-10-02,179.5500030517578,179.1199951171875,177.2899932861328,179.6300048828125
2024-10-03,183.5800018310547,179.35000610351562,179.0399932861328,183.75
2024-10-04,182.13999938964844,184.2899932861328,181.63999938964844,184.82000732421875
2024-10-07,179.80999755859375,181.44000244140625,179.50999450683594,181.8999938964844
2024-10-08,181.2899932861328,180.0,179.1999969482422,181.7100067138672
2024-10-09,182.4499969482422,181.3500061035156,181.3500061035156,183.8500061035156
2024-10-10,181.5800018310547,181.7700042724609,180.8699951171875,182.7700042724609
2024-10-11,183.3800048828125,182.5800018310547,182.5800018310547,184.80999755859372
2024-10-14,184.2899932861328,183.7400054931641,182.9600067138672,184.6499938964844
2024-10-15,184.7100067138672,184.5,183.7899932861328,186.02999877929688
2024-10-16,185.6699981689453,184.16000366210935,183.07000732421875,186.7700042724609
2024-10-17,185.97999572753903,186.1199951171875,184.3699951171875,186.92999267578125
2024-10-18,186.1199951171875,186.33999633789065,185.0399932861328,186.8300018310547
2024-10-21,184.97000122070312,185.57000732421875,184.32000732421875,186.9199981689453
2024-10-22,183.27999877929688,184.30999755859372,182.2899932861328,184.72999572753903
2024-10-23,184.4199981689453,183.2100067138672,182.8500061035156,184.7400054931641
2024-10-24,184.58999633789065,184.44000244140625,183.5500030517578,185.2100067138672
2024-10-25,182.44000244140625,184.77999877929688,182.22999572753903,185.55999755859372
2024-10-28,183.57000732421875,183.63999938964844,183.0800018310547,184.50999450683597
2024-10-29,182.66000366210935,183.3500061035156,182.41000366210935,183.67999267578125
2024-10-30,182.77999877929688,182.5500030517578,181.75999450683597,183.67999267578125
2024-10-31,181.92999267578125,182.42999267578125,181.5200042724609,184.0
2024-11-01,183.05999755859372,181.4499969482422,180.9499969482422,183.5500030517578
2024-11-04,184.32000732421875,183.05999755859372,183.05999755859372,186.41000366210935
2024-11-05,185.5200042724609,184.32000732421875,182.75999450683597,185.8000030517578
2024-11-06,180.3999938964844,189.3600006103516,177.6300048828125,189.6300048828125
2024-11-07,179.97000122070312,180.32000732421875,178.0,181.69000244140625
2024-11-08,179.77000427246094,180.5200042724609,179.14999389648438,183.67999267578125
2024-11-11,177.05999755859375,179.0399932861328,176.22999572753906,180.47999572753903
2024-11-12,177.11000061035156,177.17999267578125,175.27000427246094,177.27999877929688
2024-11-13,174.9499969482422,177.69000244140625,173.9600067138672,177.69000244140625
2024-11-14,172.4499969482422,175.0500030517578,171.8300018310547,175.57000732421875
2024-11-15,173.2100067138672,172.9199981689453,171.3800048828125,173.4499969482422

Indicator data:
date,5-day,10-day,20-day
2024-05-28,166.70800374348957,167.7167302911932,167.5357637677874
2024-05-29,164.67000223795574,166.54836592240767,167.04500165666852
2024-05-30,163.0086659749349,165.38654618696734,166.52357243129185
2024-05-31,163.0893300374349,164.98799910111862,166.34485742478142
2024-06-03,162.93999532063802,164.41672529740768,166.02057117280506
2024-06-04,162.62732849121093,163.66599759188566,165.55209466843377
2024-06-05,163.26599833170573,163.5434531471946,165.35438087100076
2024-06-06,163.77133382161458,163.53727195046164,165.1789049421038
2024-06-07,164.12666727701824,163.66527182839133,165.03028571719216
2024-06-10,164.23200174967448,163.72509072043678,164.83242877778554
2024-06-11,163.44466756184895,163.40963606400922,164.4192857288179
2024-06-12,162.22866923014323,162.87309209650212,163.90990535191128
2024-06-13,160.73733622233073,162.05872913707387,163.26852460588728
2024-06-14,160.65267130533854,161.8407304243608,162.95895378476098
2024-06-17,161.93866780598958,162.31018343838778,163.01704828171503
2024-06-18,162.21533610026043,162.23272982510653,162.82442982991537
2024-06-20,163.67000325520834,162.81327570134943,163.01581115722655
2024-06-21,165.03333740234376,163.52291259765624,163.30433538527717
2024-06-24,165.7473337809245,164.1363653009588,163.5770964849563
2024-06-25,166.11400044759114,164.70709228515625,163.85223933628626
2024-06-26,166.64266662597657,165.37218295010652,164.20952504475912
2024-06-27,166.71466674804688,165.8649100563743,164.50804893856957
2024-06-28,166.4973347981771,166.11200145374644,164.71519215901694
2024-07-01,165.48467000325522,165.76327486905186,164.65819258916946
2024-07-02,164.75800069173178,165.42872813831676,164.6325728643508
2024-07-03,164.16799825032552,165.0974540016868,164.5940959385463
2024-07-05,163.61199747721355,164.63272621848367,164.49014318557013
2024-07-08,163.7266632080078,164.45199834650214,164.5143808274042
2024-07-09,163.46666564941407,164.04945401278408,164.40057169596355
2024-07-10,162.57733154296875,163.34599859064275,164.10438065301804
2024-07-11,162.97066548665364,163.33690768155185,164.13476148332867
2024-07-12,164.04466552734374,163.77090759277343,164.3565232049851
2024-07-15,165.2673309326172,164.411088700728,164.65318937755765
2024-07-16,167.0779998779297,165.45763549804687,165.1335708618164
2024-07-17,168.43133544921875,166.3905459317294,165.5750475928897
2024-07-18,168.6300028483073,166.90745572176846,165.83319069998606
2024-07-19,167.91800435384116,166.98982044566762,165.87781030564082
2024-07-22,168.1646708170573,167.53327525745738,166.19185812813896
2024-07-23,167.68333841959637,167.65309448242186,166.3173350016276
2024-07-24,167.66666768391926,167.8530928178267,166.52166755312965
2024-07-25,167.62066548665365,167.84290993430398,166.67566709972564
2024-07-26,168.5626658121745,168.2901827725497,167.09933391752696
2024-07-29,169.1693318684896,168.63472761674362,167.490571812221
2024-07-30,170.44066670735677,169.33563704057173,168.07538168770927
2024-07-31,171.0459991455078,169.81890869140625,168.52914319719588
2024-08-01,170.61133524576823,169.8323644464666,168.71662009102957
2024-08-02,170.45067036946614,170.03454728560015,168.98685876755488
2024-08-05,168.16133728027344,168.9965476296165,168.6125732421875
2024-08-06,167.20000101725262,168.54472822709516,168.4989535377139
2024-08-07,166.46533203125,168.01218178488992,168.320429120745
2024-08-08,166.54200032552083,167.75818287242544,168.245048668271
2024-08-09,166.43000081380208,167.34109219637784,168.06771545410157
2024-08-12,165.3260030110677,166.3165477405895,167.53438262939454
2024-08-13,165.11133728027343,165.87309348366477,167.25657326834542
2024-08-14,164.86333414713542,165.49418279474432,166.9653343563988
2024-08-15,164.69000142415365,165.2332741477273,166.69576321556454
2024-08-16,164.7886698404948,165.10509338378907,166.47038283575148
2024-08-19,164.6520009358724,164.89218333851207,166.15657283238002
2024-08-20,164.91000162760417,164.93945645419035,166.0049063546317
2024-08-21,165.1086669921875,164.98600103204902,165.8509536016555
2024-08-22,164.70999755859376,164.74090853604403,165.55071476527624
2024-08-23,164.65666605631512,164.71327292702415,165.34804847353982
2024-08-26,166.03599853515624,165.48399935635652,165.57347659156437
2024-08-27,167.94866536458332,166.60690834738992,166.0480954851423
2024-08-28,170.26199747721355,168.04745289195668,166.75328536260696
2024-08-29,171.397998046875,168.984907393022,167.26952332996186
2024-08-30,172.3739980061849,170.00018005371095,167.8809041341146
2024-09-03,173.47333272298178,171.24345342462712,168.67409479050409
2024-09-04,173.82666524251303,172.10690751509233,169.319284929548
2024-09-05,173.7066680908203,172.65509088689632,169.84457128615605
2024-09-06,172.43333435058594,172.41309093128552,169.99557117280506
2024-09-09,172.0633321126302,172.47563532049006,170.3509039015997
2024-09-10,172.8153299967448,172.9769070712003,170.97928423200335
2024-09-11,173.2266621907552,173.17817909934303,171.4508552187965
2024-09-12,174.15332743326823,173.60999644886363,172.0259975615002
2024-09-13,175.10133158365886,174.1058163729581,172.60042695545016
2024-09-16,175.95066528320314,174.70563437721947,173.2153315952846
2024-09-17,175.99933369954428,174.98308965509588,173.64266531808036
2024-09-18,175.51133626302084,174.98036388050426,173.87380894252232
2024-09-19,175.47333780924478,175.22818326083097,174.1960953485398
2024-09-20,174.76133524576824,175.0670917857777,174.27861887613932
2024-09-23,174.6346700032552,175.06327486905184,174.43447665259953
2024-09-24,174.27533772786458,174.7985487504439,174.43309638613746
2024-09-25,172.90466918945313,173.93436639959162,174.0818581717355
2024-09-26,173.0826680501302,173.8398204456676,174.10352478027343
2024-09-27,173.97466939290365,174.10709367231888,174.29957289922805
2024-09-30,174.88999938964844,174.4758192582564,174.52847696940105
2024-10-01,176.7459981282552,175.42854558771307,175.04161950974236
2024-10-02,178.1526662190755,176.28109130859374,175.51847694033668
2024-10-03,180.2846669514974,177.7692732377486,176.35314374651227
2024-10-04,181.30733337402344,178.85054570978338,177.00128653390067
2024-10-07,181.1433329264323,179.35272688432173,177.36800057547433
2024-10-08,181.2546641031901,180.0338165283203,177.83799990699404
2024-10-09,181.64666341145832,180.7879979913885,178.38871387300037
2024-10-10,181.55533142089843,181.16272583007813,178.81638067336308
2024-10-11,182.19733378092448,181.72945417924362,179.386714390346
2024-10-14,183.05999857584635,182.3272713401101,180.00890415736606
2024-10-15,183.76400146484374,182.86054548783736,180.6366666521345
2024-10-16,184.56000061035155,183.4772724498402,181.31290450323195
2024-10-17,185.24466552734376,184.03908996582032,181.96409454345704
2024-10-18,185.6826639811198,184.58272566361862,182.57918933686756
2024-10-21,185.5546651204427,184.84490800337358,183.02509424118767
2024-10-22,184.81799825032553,184.7059989235618,183.26185607910156
2024-10-23,184.5566650390625,184.7381805419922,183.56161789667038
2024-10-24,184.43533121744792,184.76545271439986,183.81023668561662
2024-10-25,183.68999938964845,184.347089732777,183.80433226085844
2024-10-28,183.56666870117186,184.15127313787286,183.87533307756698
2024-10-29,183.23333638509115,183.8030919855291,183.82619062151227
2024-10-30,182.98133544921876,183.5140009099787,183.77438100179037
2024-10-31,182.55533243815105,183.12290871360085,183.62623748779296
2024-11-01,182.68333129882814,183.0109083695845,183.59357067289807
2024-11-04,183.19000040690105,183.18363702947443,183.67652384440103
2024-11-05,184.04666849772136,183.58636502352627,183.85228620256697
2024-11-06,183.00599975585936,183.01745466752485,183.5202856154669
2024-11-07,181.9806671142578,182.44345481178976,183.15709526425317
2024-11-08,181.0193349202474,181.9170917857777,182.7825242542085
2024-11-11,179.3740000406901,180.94654568758878,182.16704784574964
2024-11-12,178.22933349609374,180.10345486727627,181.59076218377976
2024-11-13,176.92533264160156,178.96854525479404,180.84495239257814
2024-11-14,175.15133158365884,177.52145385742188,179.91209498814175
2024-11-15,174.1320007324219,176.38490961248223,179.11604803176152

Answer: 40.4959