Question: For Steel Dynamics from May 04, 2024 to November 12, 2024, what percentage of days had the close less than the 5-day Double Exponential Moving Average line? (Unit: %) (Smoothing factor alpha = 2 / (n + 1); Require 5n data points to warm up; Use the first data point as the initial value) 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: DEMA = 2 * EMA1 - EMA2; EMA1 = EMA_n(P); EMA2 = EMA_n(EMA1)
Data:
date,close,high
2024-04-01,149.25999450683594,151.33999633789062
2024-04-02,147.89999389648438,149.33999633789062
2024-04-03,147.72999572753906,150.5
2024-04-04,146.7100067138672,149.77999877929688
2024-04-05,147.27000427246094,147.66000366210938
2024-04-08,147.85000610351562,148.8800048828125
2024-04-09,146.72999572753906,149.6199951171875
2024-04-10,144.64999389648438,146.02999877929688
2024-04-11,144.22999572753906,145.6199951171875
2024-04-12,140.6300048828125,145.30999755859375
2024-04-15,140.97000122070312,143.0399932861328
2024-04-16,139.77000427246094,140.22999572753906
2024-04-17,138.92999267578125,142.17999267578125
2024-04-18,136.07000732421875,140.0
2024-04-19,136.89999389648438,137.97999572753906
2024-04-22,137.3000030517578,138.63999938964844
2024-04-23,134.16000366210938,135.77999877929688
2024-04-24,129.9199981689453,144.91000366210938
2024-04-25,133.02999877929688,133.1999969482422
2024-04-26,134.0399932861328,136.27999877929688
2024-04-29,135.07000732421875,135.19000244140625
2024-04-30,130.1199951171875,133.5
2024-05-01,129.64999389648438,132.77999877929688
2024-05-02,130.7899932861328,131.19000244140625
2024-05-03,135.47000122070312,135.80999755859375
2024-05-06,132.60000610351562,137.05999755859375
2024-05-07,132.7100067138672,133.47999572753906
2024-05-08,130.82000732421875,132.6199951171875
2024-05-09,134.83999633789062,135.1999969482422
2024-05-10,135.17999267578125,135.55999755859375
2024-05-13,134.85000610351562,135.97000122070312
2024-05-14,135.07000732421875,136.3699951171875
2024-05-15,136.92999267578125,137.7899932861328
2024-05-16,134.9499969482422,137.2100067138672
2024-05-17,133.92999267578125,135.39999389648438
2024-05-20,133.0800018310547,134.69000244140625
2024-05-21,134.35000610351562,134.49000549316406
2024-05-22,132.72999572753906,133.74000549316406
2024-05-23,133.57000732421875,134.00999450683594
2024-05-24,133.33999633789062,134.49000549316406
2024-05-28,134.27999877929688,135.49000549316406
2024-05-29,131.72999572753906,135.9199981689453
2024-05-30,133.5,134.52000427246094
2024-05-31,133.8699951171875,133.92999267578125
2024-06-03,132.61000061035156,134.55999755859375
2024-06-04,127.23999786376952,130.9499969482422
2024-06-05,127.16000366210938,128.5500030517578
2024-06-06,128.35000610351562,128.4600067138672
2024-06-07,125.5199966430664,127.72000122070312
2024-06-10,123.66999816894533,125.1999969482422
2024-06-11,121.52999877929688,122.61000061035156
2024-06-12,120.77999877929688,123.5199966430664
2024-06-13,121.41999816894533,121.87000274658205
2024-06-14,120.69000244140624,121.61000061035156
2024-06-17,126.5500030517578,126.79000091552734
2024-06-18,125.0,128.3699951171875
2024-06-20,125.68000030517578,127.0500030517578
2024-06-21,128.17999267578125,128.82000732421875
2024-06-24,126.33999633789062,128.92999267578125
2024-06-25,123.58999633789062,127.25
2024-06-26,124.77999877929688,125.06999969482422
2024-06-27,125.0500030517578,126.33999633789062
2024-06-28,129.5,130.60000610351562
2024-07-01,129.14999389648438,130.60000610351562
2024-07-02,128.3000030517578,130.25999450683594
2024-07-03,127.12999725341795,129.83999633789062
2024-07-05,124.41999816894533,126.97000122070312
2024-07-08,124.2699966430664,125.62999725341795
2024-07-09,124.25,125.25
2024-07-10,127.27999877929688,127.87000274658205
2024-07-11,129.77000427246094,130.3000030517578
2024-07-12,129.22000122070312,130.75
2024-07-15,131.91000366210938,137.27000427246094
2024-07-16,132.7100067138672,133.00999450683594
2024-07-17,130.07000732421875,133.24000549316406
2024-07-18,129.1300048828125,133.4199981689453
2024-07-19,128.44000244140625,129.75999450683594
2024-07-22,127.7699966430664,128.4600067138672
2024-07-23,126.62000274658205,127.48999786376952
2024-07-24,123.29000091552734,127.44000244140624
2024-07-25,127.5999984741211,128.6699981689453
2024-07-26,130.5399932861328,131.82000732421875
2024-07-29,130.52000427246094,131.36000061035156
2024-07-30,128.85000610351562,131.47999572753906
2024-07-31,133.22000122070312,135.32000732421875
2024-08-01,126.3499984741211,133.9600067138672
2024-08-02,121.27999877929688,123.79000091552734
2024-08-05,121.41000366210938,123.5500030517578
2024-08-06,122.37999725341795,124.19000244140624
2024-08-07,119.12000274658205,126.19000244140624
2024-08-08,120.20999908447266,121.37999725341795
2024-08-09,119.43000030517578,120.37000274658205
2024-08-12,115.97000122070312,119.66999816894533
2024-08-13,117.2699966430664,117.43000030517578
2024-08-14,115.0500030517578,117.08999633789062
2024-08-15,118.0500030517578,120.0
2024-08-16,116.6999969482422,118.5199966430664
2024-08-19,116.05999755859376,118.33000183105467
2024-08-20,115.9499969482422,117.0
2024-08-21,119.0500030517578,119.30999755859376
2024-08-22,118.94000244140624,119.68000030517578
2024-08-23,120.87999725341795,120.98999786376952
2024-08-26,122.7300033569336,124.12999725341795
2024-08-27,121.41000366210938,122.61000061035156
2024-08-28,118.02999877929688,119.5500030517578
2024-08-29,118.8000030517578,120.56999969482422
2024-08-30,119.51000213623048,120.20999908447266
2024-09-03,113.95999908447266,118.1500015258789
2024-09-04,113.12000274658205,115.3499984741211
2024-09-05,111.31999969482422,114.22000122070312
2024-09-06,111.0,112.94000244140624
2024-09-09,110.73999786376952,113.51000213623048
2024-09-10,108.73999786376952,110.94000244140624
2024-09-11,108.0999984741211,108.83000183105467
2024-09-12,110.54000091552734,110.66000366210938
2024-09-13,112.83999633789062,114.13999938964844
2024-09-16,111.01000213623048,113.38999938964844
2024-09-17,114.48999786376952,116.20999908447266
2024-09-18,115.12000274658205,117.44000244140624
2024-09-19,120.08999633789062,120.16000366210938
2024-09-20,119.83000183105467,119.98999786376952
2024-09-23,120.95999908447266,121.58000183105467
2024-09-24,124.66999816894533,125.80999755859376
2024-09-25,123.33999633789062,124.7300033569336
2024-09-26,125.23999786376952,127.08000183105467
2024-09-27,125.9800033569336,128.0
2024-09-30,126.08000183105467,126.72000122070312
2024-10-01,129.22999572753906,129.5
2024-10-02,127.5999984741211,130.6699981689453
2024-10-03,127.54000091552734,127.94000244140624
2024-10-04,128.22000122070312,130.77999877929688
2024-10-07,130.07000732421875,130.19000244140625
2024-10-08,127.02999877929688,127.77999877929688
2024-10-09,130.17999267578125,130.4600067138672
2024-10-10,128.4600067138672,129.75
2024-10-11,129.86000061035156,130.69000244140625
2024-10-14,130.17999267578125,130.27000427246094
2024-10-15,128.4600067138672,131.4199981689453
2024-10-16,129.86000061035156,130.02000427246094
2024-10-17,135.0500030517578,138.72000122070312
2024-10-18,136.57000732421875,137.86000061035156
2024-10-21,133.4499969482422,137.00999450683594
2024-10-22,131.8000030517578,132.74000549316406
2024-10-23,128.63999938964844,133.24000549316406
2024-10-24,130.33999633789062,130.77000427246094
2024-10-25,129.5800018310547,131.63999938964844
2024-10-28,135.72000122070312,135.99000549316406
2024-10-29,135.16000366210938,136.02999877929688
2024-10-30,132.77000427246094,135.80999755859375
2024-10-31,130.5,133.7899932861328
2024-11-01,133.64999389648438,133.99000549316406
2024-11-04,133.5800018310547,135.0500030517578
2024-11-05,135.64999389648438,135.75
2024-11-06,154.32000732421875,155.55999755859375
2024-11-07,147.9499969482422,155.11000061035156
2024-11-08,148.5500030517578,149.67999267578125
2024-11-11,147.8000030517578,151.0
2024-11-12,144.35000610351562,146.69000244140625

Indicator data:
date,5-day,close
2024-04-11,144.7367272450903,144.22999572753906
2024-04-12,142.23436688595953,140.6300048828125
2024-04-15,141.13283113593542,140.97000122070312
2024-04-16,139.95850250743098,139.77000427246094
2024-04-17,138.94896131494363,138.92999267578125
2024-04-18,136.90928796306318,136.07000732421875
2024-04-19,136.37061672028113,136.89999389648438
2024-04-22,136.41225427377475,137.3000030517578
2024-04-23,134.7849545008542,134.16000366210938
2024-04-24,131.63671256793788,129.9199981689453
2024-04-25,131.77452600361562,133.02999877929688
2024-04-26,132.53638145390138,134.0399932861328
2024-04-29,133.61428187876854,135.07000732421875
2024-04-30,131.5050892242977,130.1199951171875
2024-05-01,130.15265913224113,129.64999389648438
2024-05-02,130.12906039271434,130.7899932861328
2024-05-03,132.79201346028802,135.47000122070312
2024-05-06,132.67866062081828,132.60000610351562
2024-05-07,132.68065364043787,132.7100067138672
2024-05-08,131.63480121862293,130.82000732421875
2024-05-09,133.3127724949224,134.83999633789062
2024-05-10,134.41711589910233,135.17999267578125
2024-05-13,134.80937340266573,134.85000610351562
2024-05-14,135.11044771584562,135.07000732421875
2024-05-15,136.27309034016844,136.92999267578125
2024-05-16,135.76281191741384,134.9499969482422
2024-05-17,134.87903969269223,133.92999267578125
2024-05-20,133.9085852327555,133.0800018310547
2024-05-21,134.09076524618405,134.35000610351562
2024-05-22,133.30053291631327,132.72999572753906
2024-05-23,133.3525986357734,133.57000732421875
2024-05-24,133.27211159517842,133.33999633789062
2024-05-28,133.76610590488548,134.27999877929688
2024-05-29,132.62608977760223,131.72999572753906
2024-05-30,133.00318564461426,133.5
2024-05-31,133.43153824565553,133.8699951171875
2024-06-03,132.97063766137967,132.61000061035156
2024-06-04,129.7423873145973,127.23999786376952
2024-06-05,127.98512488723529,127.16000366210938
2024-06-06,127.7735516952861,128.35000610351562
2024-06-07,126.17134217730683,125.5199966430664
2024-06-10,124.35910040211093,123.66999816894533
2024-06-11,122.28820414853412,121.52999877929688
2024-06-12,120.86689410591805,120.77999877929688
2024-06-13,120.58110093382435,121.41999816894533
2024-06-14,120.14173936816334,120.69000244140624
2024-06-17,123.26294157509183,126.5500030517578
2024-06-18,124.15425880237976,125.0
2024-06-20,125.02214898378539,125.68000030517578
2024-06-21,126.86985719490099,128.17999267578125
2024-06-24,126.81441126555536,126.33999633789062
2024-06-25,125.20927808277236,123.58999633789062
2024-06-26,124.97707783066318,124.77999877929688
2024-06-27,125.00198241983003,125.0500030517578
2024-06-28,127.4906072786974,129.5
2024-07-01,128.62548079416337,129.14999389648438
2024-07-02,128.71593112089136,128.3000030517578
2024-07-03,128.05991381490017,127.12999725341795
2024-07-05,126.15947145847682,124.41999816894533
2024-07-08,125.03822142018578,124.2699966430664
2024-07-09,124.44342051511737,124.25
2024-07-10,125.84090604412773,127.27999877929688
2024-07-11,128.00524630157562,129.77000427246094
2024-07-12,128.8577022728965,129.22000122070312
2024-07-15,130.77127283290994,131.91000366210938
2024-07-16,132.19272042491465,132.7100067138672
2024-07-17,131.41528483699568,130.07000732421875
2024-07-18,130.39805905127525,129.1300048828125
2024-07-19,129.42172910478905,128.44000244140625
2024-07-22,128.50649850023052,127.7699966430664
2024-07-23,127.37901030491719,126.62000274658205
2024-07-24,124.94356924993252,123.29000091552734
2024-07-25,126.0718642764464,127.5999984741211
2024-07-26,128.37645187242293,130.5399932861328
2024-07-29,129.630001509007,130.52000427246094
2024-07-30,129.35824711623627,128.85000610351562
2024-07-31,131.6087712275845,133.22000122070312
2024-08-01,128.9713615282069,126.3499984741211
2024-08-02,124.69125038090496,121.27999877929688
2024-08-05,122.48217573904348,121.41000366210938
2024-08-06,121.92011988483935,122.37999725341795
2024-08-07,119.9103067090152,119.12000274658205
2024-08-08,119.5347983783178,120.20999908447266
2024-08-09,119.00959543241567,119.43000030517578
2024-08-12,116.90066183983659,115.97000122070312
2024-08-13,116.58217096454399,117.2699966430664
2024-08-14,115.2837147668561,115.0500030517578
2024-08-15,116.34732182176167,118.0500030517578
2024-08-16,116.25921948087725,116.6999969482422
2024-08-19,115.91348294260894,116.05999755859376
2024-08-20,115.7149902105149,115.9499969482422
2024-08-21,117.3751086912848,119.0500030517578
2024-08-22,118.2379270503731,118.94000244140624
2024-08-23,119.7771851489781,120.87999725341795
2024-08-26,121.61161570636011,122.7300033569336
2024-08-27,121.81785030702461,121.41000366210938
2024-08-28,119.98641334521132,118.02999877929688
2024-08-29,119.38284211733765,118.8000030517578
2024-08-30,119.44427227792528,119.51000213623048
2024-09-03,116.3955428603549,113.95999908447266
2024-09-04,114.30327140084194,113.12000274658205
2024-09-05,112.24189698405294,111.31999969482422
2024-09-06,111.04551993621897,111.0
2024-09-09,110.36429340191816,110.73999786376952
2024-09-10,108.99215988243459,108.73999786376952
2024-09-11,107.99874954411891,108.0999984741211
2024-09-12,108.92404063120455,110.54000091552734
2024-09-13,110.7926074917025,112.83999633789062
2024-09-16,110.83390585613354,111.01000213623048
2024-09-17,112.80515789785755,114.48999786376952
2024-09-18,114.21847706973207,115.12000274658205
2024-09-19,117.70789599427553,120.08999633789062
2024-09-20,119.37898527289876,119.83000183105467
2024-09-23,120.79958082175861,120.95999908447266
2024-09-24,123.50989147514937,124.66999816894533
2024-09-25,124.10448482538109,123.33999633789062
2024-09-26,125.33936177458452,125.23999786376952
2024-09-27,126.2882697025644,125.9800033569336
2024-09-30,126.73130945110822,126.08000183105467
2024-10-01,128.60584510183529,129.22999572753906
2024-10-02,128.60276809756,127.5999984741211
2024-10-03,128.45664971605896,127.54000091552734
2024-10-04,128.6676362937638,128.22000122070312
2024-10-07,129.7394520443568,130.07000732421875
2024-10-08,128.56364932853728,127.02999877929688
2024-10-09,129.62066133630435,130.17999267578125
2024-10-10,129.19704462085707,128.4600067138672
2024-10-11,129.7046518112619,129.86000061035156
2024-10-14,130.1252893543571,130.17999267578125
2024-10-15,129.36276976371653,128.4600067138672
2024-10-16,129.7013395492732,129.86000061035156
2024-10-17,132.75277870597728,135.0500030517578
2024-10-18,135.20866785429968,136.57000732421875
2024-10-21,134.71809498578028,133.4499969482422
2024-10-22,133.44249954199836,131.8000030517578
2024-10-23,130.93751103356334,128.63999938964844
2024-10-24,130.51334648506958,130.33999633789062
2024-10-25,129.88334861003247,129.5800018310547
2024-10-28,132.98075512882315,135.72000122070312
2024-10-29,134.35063117038692,135.16000366210938
2024-10-30,133.72161780480195,132.77000427246094
2024-10-31,132.07520798735914,130.5
2024-11-01,132.91844379016928,133.64999389648438
2024-11-04,133.33561412243674,133.5800018310547
2024-11-05,134.6981729407519,135.64999389648438
2024-11-06,145.7817422038258,154.32000732421875
2024-11-07,148.11757445858194,147.9499969482422
2024-11-08,149.47043912816673,148.5500030517578
2024-11-11,149.55277497282566,147.8000030517578
2024-11-12,147.4779512746431,144.35000610351562

Answer: 50.0