Question: From July 07, 2021 to October 25, 2021, count the number of death cross occurrences between the 20-day and 5-day Exponential Moving Average lines for Dow Inc.. (Smoothing factor alpha = 2 / (n + 1); Require 4n 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: EMA_t = \alpha * P_t + (1 - \alpha) * EMA_{t-1}, \quad \alpha = 2 / (n + 1)
Data:
date,close
2021-03-12,64.33999633789062
2021-03-15,62.900001525878906
2021-03-16,63.18000030517578
2021-03-17,66.01000213623047
2021-03-18,64.72000122070312
2021-03-19,63.90999984741211
2021-03-22,63.5099983215332
2021-03-23,60.75
2021-03-24,62.040000915527344
2021-03-25,63.2400016784668
2021-03-26,63.9900016784668
2021-03-29,63.900001525878906
2021-03-30,64.61000061035156
2021-03-31,63.93999862670898
2021-04-01,64.5999984741211
2021-04-05,64.58999633789062
2021-04-06,64.5999984741211
2021-04-07,63.9900016784668
2021-04-08,63.18999862670898
2021-04-09,63.13999938964844
2021-04-12,63.790000915527344
2021-04-13,63.310001373291016
2021-04-14,64.23999786376953
2021-04-15,64.56999969482422
2021-04-16,64.68000030517578
2021-04-19,64.55000305175781
2021-04-20,62.47999954223633
2021-04-21,64.81999969482422
2021-04-22,60.93000030517578
2021-04-23,62.11000061035156
2021-04-26,62.20000076293945
2021-04-27,62.650001525878906
2021-04-28,63.310001373291016
2021-04-29,64.05999755859375
2021-04-30,62.5
2021-05-03,64.55000305175781
2021-05-04,66.22000122070312
2021-05-05,68.06999969482422
2021-05-06,69.04000091552734
2021-05-07,69.04000091552734
2021-05-10,68.7300033569336
2021-05-11,68.56999969482422
2021-05-12,67.5999984741211
2021-05-13,68.08000183105469
2021-05-14,69.83000183105469
2021-05-17,70.91000366210938
2021-05-18,69.52999877929688
2021-05-19,68.55000305175781
2021-05-20,68.26000213623047
2021-05-21,68.83000183105469
2021-05-24,69.55000305175781
2021-05-25,69.04000091552734
2021-05-26,69.56999969482422
2021-05-27,68.66000366210938
2021-05-28,68.41999816894531
2021-06-01,70.41000366210938
2021-06-02,68.94999694824219
2021-06-03,70.61000061035156
2021-06-04,70.37000274658203
2021-06-07,69.23999786376953
2021-06-08,69.37999725341797
2021-06-09,68.83999633789062
2021-06-10,67.98999786376953
2021-06-11,68.0
2021-06-14,66.95999908447266
2021-06-15,67.22000122070312
2021-06-16,65.58999633789062
2021-06-17,63.540000915527344
2021-06-18,61.97999954223633
2021-06-21,63.11000061035156
2021-06-22,63.5
2021-06-23,63.150001525878906
2021-06-24,63.11000061035156
2021-06-25,63.290000915527344
2021-06-28,62.900001525878906
2021-06-29,62.97999954223633
2021-06-30,63.27999877929688
2021-07-01,63.5
2021-07-02,63.5099983215332
2021-07-06,61.93000030517578
2021-07-07,62.25
2021-07-08,61.40999984741211
2021-07-09,63.08000183105469
2021-07-12,63.220001220703125
2021-07-13,62.70000076293945
2021-07-14,62.31999969482422
2021-07-15,61.90999984741211
2021-07-16,60.0099983215332
2021-07-19,57.790000915527344
2021-07-20,58.619998931884766
2021-07-21,59.72999954223633
2021-07-22,60.47999954223633
2021-07-23,60.11000061035156
2021-07-26,62.0099983215332
2021-07-27,61.95000076293945
2021-07-28,61.869998931884766
2021-07-29,62.59999847412109
2021-07-30,62.15999984741211
2021-08-02,61.220001220703125
2021-08-03,62.22999954223633
2021-08-04,60.9900016784668
2021-08-05,61.0
2021-08-06,62.0
2021-08-09,61.81999969482422
2021-08-10,63.119998931884766
2021-08-11,64.23999786376953
2021-08-12,64.01000213623047
2021-08-13,63.68999862670898
2021-08-16,63.31999969482422
2021-08-17,62.310001373291016
2021-08-18,61.880001068115234
2021-08-19,60.54999923706055
2021-08-20,60.88999938964844
2021-08-23,62.060001373291016
2021-08-24,63.2599983215332
2021-08-25,63.869998931884766
2021-08-26,63.650001525878906
2021-08-27,65.37999725341797
2021-08-30,63.97999954223633
2021-08-31,62.900001525878906
2021-09-01,62.540000915527344
2021-09-02,62.619998931884766
2021-09-03,62.119998931884766
2021-09-07,61.869998931884766
2021-09-08,60.68999862670898
2021-09-09,60.27999877929688
2021-09-10,60.40999984741211
2021-09-13,60.720001220703125
2021-09-14,59.650001525878906
2021-09-15,60.20000076293945
2021-09-16,59.470001220703125
2021-09-17,57.75
2021-09-20,56.18000030517578
2021-09-21,55.52999877929688
2021-09-22,56.29999923706055
2021-09-23,57.43000030517578
2021-09-24,56.810001373291016
2021-09-27,59.68999862670898
2021-09-28,59.459999084472656
2021-09-29,58.81999969482422
2021-09-30,57.560001373291016
2021-10-01,58.58000183105469
2021-10-04,58.2400016784668
2021-10-05,59.09999847412109
2021-10-06,57.15999984741211
2021-10-07,58.5099983215332
2021-10-08,58.709999084472656
2021-10-11,58.22999954223633
2021-10-12,57.7400016784668
2021-10-13,56.90999984741211
2021-10-14,58.7400016784668
2021-10-15,58.959999084472656
2021-10-18,58.95000076293945
2021-10-19,59.18999862670898
2021-10-20,59.88999938964844
2021-10-21,59.2599983215332
2021-10-22,58.400001525878906
2021-10-25,58.709999084472656

Indicator data:
date,20-day,5-day
2021-04-09,63.85965318567718,63.64501100570462
2021-04-12,63.8530196361391,63.693340975645526
2021-04-13,63.80130361110595,63.56556110819403
2021-04-14,63.84308401612153,63.790373360052534
2021-04-15,63.91231408075988,64.05024880497643
2021-04-16,63.98542705451378,64.26016597170955
2021-04-19,64.03919619710845,64.35677833172565
2021-04-20,63.890701277596825,63.73118540189588
2021-04-21,63.979205888761335,64.09412349953865
2021-04-22,63.68880535699128,63.03941576808437
2021-04-23,63.53844300016845,62.729610715506766
2021-04-26,63.41097231090855,62.553074064651
2021-04-27,63.338498902810485,62.58538321839364
2021-04-28,63.33578485238006,62.826922603359435
2021-04-29,63.40475749106708,63.23794758843754
2021-04-30,63.31859011096545,62.99196505895837
2021-05-03,63.43586753389806,63.511311056558185
2021-05-04,63.70102312311759,64.41420777793984
2021-05-05,64.1171161299468,65.63280508356797
2021-05-06,64.58596230000208,66.76853702755443
2021-05-07,65.01015645386163,67.52569165687873
2021-05-10,65.36442758748753,67.92712889023036
2021-05-11,65.66972016913864,68.14141915842832
2021-05-12,65.85355619818459,67.96094559699259
2021-05-13,66.06559863941031,68.00063100834663
2021-05-14,66.42411322909074,68.61042128258265
2021-05-17,66.85134088937822,69.3769487424249
2021-05-18,67.10645116460857,69.42796542138223
2021-05-19,67.24393229671801,69.13531129817409
2021-05-20,67.34070085286206,68.84354157752622
2021-05-21,67.48253904126136,68.83902832870238
2021-05-24,67.67944037559437,69.0760199030542
2021-05-25,67.8090175698737,69.06401357387858
2021-05-26,67.97673015320233,69.2326756141938
2021-05-27,68.04180382071729,69.041784963499
2021-05-28,68.07782233007234,68.83452269864777
2021-06-01,68.29993483788539,69.35968301980165
2021-06-02,68.36184551506223,69.2231209959485
2021-06-03,68.57595552413741,69.68541420074953
2021-06-04,68.74681716437024,69.9136103826937
2021-06-07,68.79378675478922,69.68907287638565
2021-06-08,68.8496163260872,69.58604766872976
2021-06-09,68.84870013673515,69.33736389178338
2021-06-10,68.76691896788128,68.88824188244544
2021-06-11,68.6938790661783,68.59216125496363
2021-06-14,68.52874763934919,68.04810719813331
2021-06-15,68.40410512328766,67.77207187232325
2021-06-16,68.13609476277367,67.04471336084572
2021-06-17,67.6983715392264,65.87647587907293
2021-06-18,67.15376468237021,64.57765043346073
2021-06-21,66.76864429455891,64.08843382575768
2021-06-22,66.45734483793426,63.892289217171786
2021-06-23,66.14235976059565,63.644859986740826
2021-06-24,65.8535636510486,63.46657352794441
2021-06-25,65.6094148190942,63.407715990472056
2021-06-28,65.3513754578356,63.238477835607675
2021-06-29,65.12553013254043,63.15231840448389
2021-06-30,64.94976524175533,63.19487852942156
2021-07-01,64.81169236158816,63.29658568628104
2021-07-02,64.68772150063054,63.367723231365105
2021-07-06,64.42508138677772,62.88848225596867
2021-07-07,64.21793077851318,62.67565483731245
2021-07-08,63.95050878507498,62.253769840679006
2021-07-09,63.867603360882576,62.52918050413757
2021-07-12,63.80592696657977,62.759454076326094
2021-07-13,63.700600661471164,62.739636305197216
2021-07-14,63.56911485512384,62.59975743507289
2021-07-15,63.411103902008435,62.36983823918597
2021-07-16,63.087189084820324,61.583224933301715
2021-07-19,62.582694973459084,60.31881692737693
2021-07-20,62.205295350452005,59.75254426221288
2021-07-21,61.9695528925267,59.74502935555403
2021-07-22,61.82769066868953,59.99001941778147
2021-07-23,61.66410113932401,60.03001314863817
2021-07-26,61.69704372810584,60.69000820626985
2021-07-27,61.72113487428047,61.11000572515972
2021-07-28,61.73531240357612,61.363336794068076
2021-07-29,61.81766345791374,61.77555735408575
2021-07-30,61.85026692358025,61.90370485186121
2021-08-02,61.790241618544336,61.675803641475184
2021-08-03,61.83212332556262,61.860535608395566
2021-08-04,61.75192126393445,61.57035763175264
2021-08-05,61.68030971498831,61.38023842116843
2021-08-06,61.71075640879895,61.586825614112286
2021-08-09,61.72116053127755,61.66455030768294
2021-08-10,61.854383236097284,62.14969984908355
2021-08-11,62.081584629208926,62.84646585397888
2021-08-12,62.26524343940145,63.234311281396074
2021-08-13,62.400934409621215,63.38620706316705
2021-08-16,62.4884644367834,63.36413794038611
2021-08-17,62.471467954546036,63.01275908468775
2021-08-18,62.41513777488596,62.635173079163586
2021-08-19,62.2375055331883,61.940115131795906
2021-08-20,62.10917161475593,61.59007655108009
2021-08-23,62.10448873461642,61.74671815848373
2021-08-24,62.21453726670373,62.251144879500224
2021-08-25,62.37220028243526,62.79076289696174
2021-08-26,62.4938956389537,63.07717577326746
2021-08-27,62.76876245937888,63.84478293331763
2021-08-30,62.88411837203196,63.889855136290535
2021-08-31,62.88563105335072,63.55990393282
2021-09-01,62.85271389736754,63.21993626038912
2021-09-02,62.83055056732156,63.01995715088767
2021-09-03,62.762878982994245,62.71997107788671
2021-09-07,62.677842787650484,62.4366470292194
2021-09-08,62.48852429613225,61.85443089504926
2021-09-09,62.278188532624114,61.329620189798476
2021-09-10,62.10026580069916,61.0230800756697
2021-09-13,61.96881203117573,60.92205379068084
2021-09-14,61.747972935433175,60.4980363690802
2021-09-15,61.6005470142433,60.39869116703329
2021-09-16,61.397637891048994,60.08912785158991
2021-09-17,61.05024380618718,59.30941856772661
2021-09-20,60.58641109180515,58.26627914687634
2021-09-21,60.10484801442341,57.354185691016525
2021-09-22,59.74248146419838,57.00279020636454
2021-09-23,59.52224516333908,57.14519357263496
2021-09-24,59.26393623095355,57.03346283952031
2021-09-27,59.304513601977874,57.918974768583205
2021-09-28,59.319321743167855,58.43264954054636
2021-09-29,59.271767262373224,58.56176625863898
2021-09-30,59.10874193960349,58.227844630189665
2021-10-01,59.05838573878932,58.34523036381134
2021-10-04,58.98044439971098,58.31015413536316
2021-10-05,58.991830502035754,58.57343558161581
2021-10-06,58.81737043969064,58.102290336881246
2021-10-07,58.78809690462803,58.2381929984319
2021-10-08,58.780659016994186,58.39546169377882
2021-10-11,58.72821525749344,58.34030764326466
2021-10-12,58.63409967853852,58.14020565499871
2021-10-13,58.469899694621716,57.73013705246984
2021-10-14,58.495623693083154,58.06675859446883
2021-10-15,58.539849920834534,58.36450542447011
2021-10-18,58.57891190579691,58.55967053729323
2021-10-19,58.637110641121865,58.769779900431814
2021-10-20,58.75643337907678,59.14318639683736
2021-10-21,58.80439194502501,59.18212370506931
2021-10-22,58.765878571773,58.921416312005846
2021-10-25,58.760556715839634,58.85094390282812

Answer: 7.0