Question: How many times did the price break above the 10-day Exponential Moving Average line for General Dynamics from October 02, 2021 to October 22, 2021? (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,high,open
2021-08-06,199.0800018310547,199.4499969482422,198.13999938964844
2021-08-09,197.2400054931641,198.58999633789065,198.3999938964844
2021-08-10,199.0200042724609,199.13999938964844,196.9900054931641
2021-08-11,200.69000244140625,200.7400054931641,199.42999267578125
2021-08-12,199.1699981689453,201.1499938964844,200.77999877929688
2021-08-13,198.3699951171875,199.6100006103516,199.47000122070312
2021-08-16,200.4600067138672,200.5399932861328,198.19000244140625
2021-08-17,199.32000732421875,200.4600067138672,199.47999572753903
2021-08-18,196.8000030517578,199.42999267578125,198.88999938964844
2021-08-19,195.4900054931641,197.33999633789065,195.50999450683597
2021-08-20,197.3000030517578,197.8999938964844,195.6300048828125
2021-08-23,198.00999450683597,199.1000061035156,198.0800018310547
2021-08-24,198.9199981689453,199.6000061035156,198.6699981689453
2021-08-25,199.3000030517578,200.07000732421875,199.57000732421875
2021-08-26,199.07000732421875,199.38999938964844,198.8800048828125
2021-08-27,199.72000122070312,200.5200042724609,199.8699951171875
2021-08-30,199.19000244140625,200.00999450683597,199.92999267578125
2021-08-31,200.30999755859372,200.7700042724609,199.3000030517578
2021-09-01,199.7899932861328,201.0,201.0
2021-09-02,202.3000030517578,202.3999938964844,200.30999755859372
2021-09-03,202.4600067138672,202.8999938964844,202.0
2021-09-07,202.38999938964844,203.25,201.6699981689453
2021-09-08,204.3999938964844,205.0,202.17999267578125
2021-09-09,203.80999755859372,206.4600067138672,205.0
2021-09-10,201.6000061035156,205.13999938964844,204.9499969482422
2021-09-13,199.4199981689453,202.8800048828125,202.33999633789065
2021-09-14,196.66000366210935,200.42999267578125,200.42999267578125
2021-09-15,198.47999572753903,199.4600067138672,196.6100006103516
2021-09-16,194.8800048828125,199.5,198.91000366210935
2021-09-17,195.1199951171875,195.7899932861328,194.1199951171875
2021-09-20,193.42999267578125,194.57000732421875,194.0
2021-09-21,191.19000244140625,194.77999877929688,193.92999267578125
2021-09-22,193.75,194.9499969482422,192.77999877929688
2021-09-23,196.75,197.8800048828125,195.6000061035156
2021-09-24,197.4199981689453,198.1199951171875,196.6499938964844
2021-09-27,197.75999450683597,200.2100067138672,198.16000366210935
2021-09-28,197.1000061035156,198.6999969482422,197.7899932861328
2021-09-29,198.38999938964844,199.5200042724609,198.08999633789065
2021-09-30,196.02999877929688,199.4900054931641,198.9600067138672
2021-10-01,198.22000122070312,199.3000030517578,197.2700042724609
2021-10-04,197.50999450683597,199.7400054931641,197.66000366210935
2021-10-05,198.16000366210935,199.66000366210935,198.22999572753903
2021-10-06,199.3600006103516,199.41000366210935,197.1199951171875
2021-10-07,201.72999572753903,202.19000244140625,199.88999938964844
2021-10-08,202.1199951171875,202.83999633789065,201.94000244140625
2021-10-11,202.8800048828125,205.83999633789065,202.5
2021-10-12,203.5500030517578,205.4499969482422,202.8800048828125
2021-10-13,203.38999938964844,204.05999755859372,203.3800048828125
2021-10-14,205.13999938964844,205.6699981689453,204.72000122070312
2021-10-15,208.05999755859372,208.92999267578125,205.75
2021-10-18,206.66000366210935,208.2700042724609,206.9199981689453
2021-10-19,208.6199951171875,209.02999877929688,207.0800018310547
2021-10-20,208.44000244140625,209.6300048828125,208.6199951171875
2021-10-21,208.0399932861328,208.1999969482422,207.9600067138672
2021-10-22,209.5200042724609,210.2100067138672,208.7100067138672

Indicator data:
date,10-day,close
2021-08-19,198.2208434608505,195.4900054931641
2021-08-20,198.0534179319245,197.3000030517578
2021-08-23,198.04552276372658,198.00999450683597
2021-08-24,198.20451829194815,198.9199981689453
2021-08-25,198.40369733918624,199.3000030517578
2021-08-26,198.52484460919214,199.07000732421875
2021-08-27,198.742145811285,199.72000122070312
2021-08-30,198.82357428948887,199.19000244140625
2021-08-31,199.09383306568975,200.30999755859372
2021-09-01,199.22040765122483,199.7899932861328
2021-09-02,199.78033408768536,202.3000030517578
2021-09-03,200.26754729244567,202.4600067138672
2021-09-07,200.65344767375527,202.38999938964844
2021-09-08,201.33463789606964,204.3999938964844
2021-09-09,201.78470328925582,203.80999755859372
2021-09-10,201.75112198275758,201.6000061035156
2021-09-13,201.32728128933715,199.4199981689453
2021-09-14,200.47868535711393,196.66000366210935
2021-09-15,200.11528724264576,198.47999572753903
2021-09-16,199.1634177226761,194.8800048828125
2021-09-17,198.42824997622358,195.1199951171875
2021-09-20,197.5194759215977,193.42999267578125
2021-09-21,196.36866256156287,191.19000244140625
2021-09-22,195.89254209582415,193.75
2021-09-23,196.04844353294703,196.75
2021-09-24,196.29781710312852,197.4199981689453
2021-09-27,196.56366754016622,197.75999450683597
2021-09-28,196.6611836425934,197.1000061035156
2021-09-29,196.97551377842154,198.38999938964844
2021-09-30,196.80360196039885,196.02999877929688
2021-10-01,197.06112909863597,198.22000122070312
2021-10-04,197.14274099103596,197.50999450683597
2021-10-05,197.32769784032203,198.16000366210935
2021-10-06,197.69720743487287,199.3600006103516
2021-10-07,198.43044166990308,201.72999572753903
2021-10-08,199.1012695694093,202.1199951171875
2021-10-11,199.78831235366442,202.8800048828125
2021-10-12,200.47225611695413,203.5500030517578
2021-10-13,201.00275489380763,203.38999938964844
2021-10-14,201.75498116577867,205.13999938964844
2021-10-15,202.9013477826541,208.05999755859372
2021-10-18,203.58473976073685,206.66000366210935
2021-10-19,204.50024073463695,208.6199951171875
2021-10-20,205.21656104495864,208.44000244140625
2021-10-21,205.72991236153575,208.0399932861328
2021-10-22,206.41901998170394,209.5200042724609

Answer: 3.0