Question: During June 18, 2022 to January 04, 2023, how many times did Lilly (Eli)'s 20-day and 10-day Double Exponential Moving Average lines form a golden cross? (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
2022-01-26,237.8600006103516
2022-01-27,236.72000122070312
2022-01-28,245.1000061035156
2022-01-31,245.38999938964844
2022-02-01,248.27999877929688
2022-02-02,250.8300018310547
2022-02-03,244.80999755859372
2022-02-04,242.2700042724609
2022-02-07,243.5500030517578
2022-02-08,239.91000366210935
2022-02-09,243.2700042724609
2022-02-10,239.63999938964844
2022-02-11,235.7400054931641
2022-02-14,234.69000244140625
2022-02-15,243.83999633789065
2022-02-16,245.5800018310547
2022-02-17,240.97000122070312
2022-02-18,240.30999755859372
2022-02-22,239.1300048828125
2022-02-23,238.30999755859372
2022-02-24,243.0800018310547
2022-02-25,250.8500061035156
2022-02-28,249.9499969482422
2022-03-01,249.5
2022-03-02,254.1699981689453
2022-03-03,258.6400146484375
2022-03-04,262.8699951171875
2022-03-07,261.6400146484375
2022-03-08,259.92999267578125
2022-03-09,262.7900085449219
2022-03-10,266.0199890136719
2022-03-11,266.29998779296875
2022-03-14,269.0
2022-03-15,275.4599914550781
2022-03-16,276.44000244140625
2022-03-17,285.510009765625
2022-03-18,287.6400146484375
2022-03-21,289.6400146484375
2022-03-22,285.0199890136719
2022-03-23,284.19000244140625
2022-03-24,287.69000244140625
2022-03-25,289.0199890136719
2022-03-28,291.6600036621094
2022-03-29,288.3900146484375
2022-03-30,289.8900146484375
2022-03-31,286.3699951171875
2022-04-01,292.6700134277344
2022-04-04,291.4200134277344
2022-04-05,292.489990234375
2022-04-06,305.8399963378906
2022-04-07,308.42999267578125
2022-04-08,311.69000244140625
2022-04-11,308.9599914550781
2022-04-12,308.0799865722656
2022-04-13,302.6700134277344
2022-04-14,301.8599853515625
2022-04-18,298.82000732421875
2022-04-19,297.010009765625
2022-04-20,292.9200134277344
2022-04-21,289.6099853515625
2022-04-22,278.7300109863281
2022-04-25,285.20001220703125
2022-04-26,282.8299865722656
2022-04-27,285.0899963378906
2022-04-28,297.2699890136719
2022-04-29,292.1300048828125
2022-05-02,289.5599975585937
2022-05-03,288.07000732421875
2022-05-04,294.8999938964844
2022-05-05,292.3699951171875
2022-05-06,296.8999938964844
2022-05-09,289.2300109863281
2022-05-10,285.70001220703125
2022-05-11,286.69000244140625
2022-05-12,291.79998779296875
2022-05-13,291.6300048828125
2022-05-16,299.3800048828125
2022-05-17,301.3999938964844
2022-05-18,295.19000244140625
2022-05-19,286.2699890136719
2022-05-20,298.8500061035156
2022-05-23,302.6000061035156
2022-05-24,305.9599914550781
2022-05-25,307.010009765625
2022-05-26,313.4599914550781
2022-05-27,323.4800109863281
2022-05-31,313.44000244140625
2022-06-01,311.0799865722656
2022-06-02,302.42999267578125
2022-06-03,301.6499938964844
2022-06-06,303.3599853515625
2022-06-07,312.1000061035156
2022-06-08,313.489990234375
2022-06-09,303.25
2022-06-10,297.010009765625
2022-06-13,291.2799987792969
2022-06-14,290.7900085449219
2022-06-15,292.989990234375
2022-06-16,288.07000732421875
2022-06-17,290.8999938964844
2022-06-21,297.3399963378906
2022-06-22,306.69000244140625
2022-06-23,312.7200012207031
2022-06-24,325.6199951171875
2022-06-27,327.2699890136719
2022-06-28,317.6199951171875
2022-06-29,323.0
2022-06-30,324.2300109863281
2022-07-01,324.7099914550781
2022-07-05,327.17999267578125
2022-07-06,330.1499938964844
2022-07-07,327.95001220703125
2022-07-08,330.4700012207031
2022-07-11,331.07000732421875
2022-07-12,323.5899963378906
2022-07-13,322.4599914550781
2022-07-14,326.8900146484375
2022-07-15,331.6000061035156
2022-07-18,321.7699890136719
2022-07-19,326.20001220703125
2022-07-20,322.0299987792969
2022-07-21,326.9200134277344
2022-07-22,328.75
2022-07-25,331.54998779296875
2022-07-26,331.5599975585937
2022-07-27,328.94000244140625
2022-07-28,330.79998779296875
2022-07-29,329.69000244140625
2022-08-01,324.1499938964844
2022-08-02,320.20001220703125
2022-08-03,313.8299865722656
2022-08-04,305.7900085449219
2022-08-05,301.32000732421875
2022-08-08,302.5
2022-08-09,303.0199890136719
2022-08-10,304.6099853515625
2022-08-11,301.1700134277344
2022-08-12,308.0799865722656
2022-08-15,313.94000244140625
2022-08-16,310.3099975585937
2022-08-17,316.82000732421875
2022-08-18,316.7200012207031
2022-08-19,322.7699890136719
2022-08-22,323.1000061035156
2022-08-23,315.1000061035156
2022-08-24,318.8699951171875
2022-08-25,323.1400146484375
2022-08-26,315.5599975585937
2022-08-29,310.1499938964844
2022-08-30,307.0400085449219
2022-08-31,301.2300109863281
2022-09-01,309.1300048828125
2022-09-02,301.3299865722656
2022-09-06,306.82000732421875
2022-09-07,311.6000061035156
2022-09-08,315.5
2022-09-09,317.70001220703125
2022-09-12,315.2200012207031
2022-09-13,306.4800109863281
2022-09-14,309.6099853515625
2022-09-15,309.4700012207031
2022-09-16,308.8900146484375
2022-09-19,305.0899963378906
2022-09-20,301.7300109863281
2022-09-21,296.4800109863281
2022-09-22,310.8699951171875
2022-09-23,311.4599914550781
2022-09-26,307.5
2022-09-27,311.1000061035156
2022-09-28,334.3800048828125
2022-09-29,330.010009765625
2022-09-30,323.3500061035156
2022-10-03,321.54998779296875
2022-10-04,329.8900146484375
2022-10-05,331.7799987792969
2022-10-06,332.95001220703125
2022-10-07,326.6600036621094
2022-10-10,323.8900146484375
2022-10-11,327.6000061035156
2022-10-12,324.57000732421875
2022-10-13,332.1000061035156
2022-10-14,331.3900146484375
2022-10-17,332.760009765625
2022-10-18,335.0299987792969
2022-10-19,329.2900085449219
2022-10-20,329.07000732421875
2022-10-21,340.7699890136719
2022-10-24,347.8999938964844
2022-10-25,351.3099975585937
2022-10-26,357.8599853515625
2022-10-27,356.3299865722656
2022-10-28,359.8999938964844
2022-10-31,362.0899963378906
2022-11-01,352.5799865722656
2022-11-02,354.9599914550781
2022-11-03,361.6799926757813
2022-11-04,357.4100036621094
2022-11-07,365.0700073242188
2022-11-08,366.6600036621094
2022-11-09,363.2699890136719
2022-11-10,368.7200012207031
2022-11-11,352.29998779296875
2022-11-14,356.0599975585937
2022-11-15,349.95001220703125
2022-11-16,352.92999267578125
2022-11-17,360.7699890136719
2022-11-18,361.6700134277344
2022-11-21,361.1700134277344
2022-11-22,360.8800048828125
2022-11-23,361.7200012207031
2022-11-25,365.25
2022-11-28,365.7699890136719
2022-11-29,363.9500122070313
2022-11-30,371.0799865722656
2022-12-01,370.3299865722656
2022-12-02,374.760009765625
2022-12-05,369.2900085449219
2022-12-06,368.5400085449219
2022-12-07,371.9700012207031
2022-12-08,371.7900085449219
2022-12-09,360.989990234375
2022-12-12,367.25
2022-12-13,358.6600036621094
2022-12-14,363.5
2022-12-15,360.010009765625
2022-12-16,359.8699951171875
2022-12-19,357.7799987792969
2022-12-20,359.6400146484375
2022-12-21,368.010009765625
2022-12-22,365.30999755859375
2022-12-23,367.8999938964844
2022-12-27,364.8800048828125
2022-12-28,365.2200012207031
2022-12-29,367.0199890136719
2022-12-30,365.8399963378906
2023-01-03,364.989990234375
2023-01-04,363.1000061035156

Indicator data:
date,20-day,10-day
2022-03-22,282.11520696127434,288.0510093260959
2022-03-23,283.6914308491789,288.3345293689165
2022-03-24,285.62116125712095,289.54433941650683
2022-03-25,287.4608595967705,290.7325768449782
2022-03-28,289.4598817966709,292.3441261533952
2022-03-29,290.52303005184575,292.31932816554206
2022-03-30,291.64607871058604,292.6687009664964
2022-03-31,291.9109194068596,291.6470784074473
2022-04-01,293.22031908722204,292.8713839609833
2022-04-04,294.06043714158227,293.2710803882843
2022-04-05,294.91830350734176,293.83116481005965
2022-04-06,298.02029215411847,298.57498616544547
2022-04-07,301.10032939958955,302.8469648761203
2022-04-08,304.27949692786575,306.9689713008171
2022-04-11,306.4539201044091,308.98191514800436
2022-04-12,308.0969828289212,310.03778755740905
2022-04-13,308.4604291032065,308.8914696684831
2022-04-14,308.5584794347741,307.65065399069084
2022-04-18,308.02651560524015,305.62364683737314
2022-04-19,307.1792031783165,303.4434646901409
2022-04-20,305.6514111901047,300.41926281295497
2022-04-21,303.68483353729806,297.05266386551847
2022-04-22,299.97365014812596,290.95626549024934
2022-04-25,297.9167076028152,288.60987509699015
2022-04-26,295.68762576331045,286.14294866058975
2022-04-27,294.1562690295794,285.1291263541705
2022-04-28,295.0299981507104,288.4756022231471
2022-04-29,294.8331216103736,289.3073603001292
2022-05-02,294.18122708903724,289.10787839597657
2022-05-03,293.3353811500935,288.4967282558039
2022-05-04,293.8342179902727,290.33135154349225
2022-05-05,293.7932730936419,290.8741540603753
2022-05-06,294.5686147778918,292.7844872774551
2022-05-09,293.83307108554726,291.6638236464909
2022-05-10,292.54884565317315,289.6662289694609
2022-05-11,291.6150554125346,288.5251510643852
2022-05-12,291.73297001428057,289.38987428140564
2022-05-13,291.799266181021,289.99221906007216
2022-05-16,293.25789627399257,293.0115667490221
2022-05-17,294.8738895145635,295.91107481420386
2022-05-18,295.12939668229035,295.9806299497883
2022-05-19,293.7209600300615,293.05229043606465
2022-05-20,294.78252885470397,295.0264720665816
2022-05-23,296.36868816239365,297.7140989113718
2022-05-24,298.3331498629957,300.78551062425686
2022-05-25,300.200903842881,303.35975033077625
2022-05-26,302.9616615426221,307.3358967898307
2022-05-27,307.1345150840197,313.51246722862743
2022-05-31,308.8773301145413,314.65769068958986
2022-06-01,309.91725221384854,314.6039031902477
2022-06-02,309.2099127661498,311.5919014565452
2022-06-03,308.42789661348655,309.0148789216291
2022-06-06,308.0364677573115,307.61158382059057
2022-06-07,309.25912062228673,309.42090227528394
2022-06-08,310.53789603419085,311.18016322881675
2022-06-09,309.75387581139756,309.04908749231583
2022-06-10,307.921118390935,305.3679875418957
2022-06-13,305.28240922496116,300.7332648431995
2022-06-14,302.90648435092663,297.1561969735713
2022-06-15,301.250755898332,295.2784450431883
2022-06-16,298.92794486237966,292.3193455225062
2022-06-17,297.44139699763997,291.1335194805411
2022-06-21,297.33343963649907,292.4609086203829
2022-06-22,298.9412720802971,296.60169469755516
2022-06-23,301.4215948376651,301.70051167605294
2022-06-24,305.89458724732674,309.7425107611463
2022-06-27,310.0343863472951,316.19632579565956
2022-06-28,311.828967694314,317.6926391411822
2022-06-29,314.3264923351083,320.4704160023711
2022-06-30,316.6727537974497,322.8201573346021
2022-07-01,318.74900743500234,324.5984026343344
2022-07-05,320.9507570878211,326.609016463999
2022-07-06,323.3483731074939,328.9556583968758
2022-07-07,324.97365050228206,329.8387664215313
2022-07-08,326.7882303377271,331.2005539726551
2022-07-11,328.41587408468587,332.28636244186043
2022-07-12,328.41540933798296,330.50028497146326
2022-07-13,328.1662714328012,328.70265170742226
2022-07-14,328.7142032962643,328.75737891682456
2022-07-15,330.00061137908773,330.28930540518127
2022-07-18,329.2849413782023,328.10854643622656
2022-07-19,329.43456762693455,327.9036309119193
2022-07-20,328.77124739993684,326.3316212474746
2022-07-21,329.0541897478876,326.75361557181145
2022-07-22,329.59841743067864,327.6465626345024
2022-07-25,330.54415790052514,329.20641365316936
2022-07-26,331.32927447747386,330.3313939812373
2022-07-27,331.49877644397725,330.25898089194334
2022-07-28,331.9517332286086,330.78177461117923
2022-07-29,332.1107164244915,330.76540874277237
2022-08-01,331.2139123296788,328.88749467381945
2022-08-02,329.6991719960816,326.1679879773513
2022-08-03,327.2174941040951,322.04440970556755
2022-08-04,323.6060791577869,316.3546026506797
2022-08-05,319.67731458698194,310.7187944135138
2022-08-08,316.5088025120405,307.0254397975107
2022-08-09,313.88234231247543,304.57532473520143
2022-08-10,311.92224744125775,303.4093676325771
2022-08-11,309.6273697751021,301.5313599351412
2022-08-12,308.925595599798,302.54652453232563
2022-08-15,309.4064989016944,305.34621722073325
2022-08-16,309.18277943574986,306.3044821242969
2022-08-17,310.19082235306365,309.230448318932
2022-08-18,311.05798730715355,311.4069876052624
2022-08-19,312.91670301581144,315.039642550496
2022-08-22,314.58747599087826,317.83606502992063
2022-08-23,314.58112488985716,317.23743680783605
2022-08-24,315.26453055534415,318.0123207065199
2022-08-25,316.6312717480611,319.97097421632213
2022-08-26,316.4340544577773,318.8811098562286
2022-08-29,315.2832790329293,316.25331143604274
2022-08-30,313.73053096707685,313.2643498140941
2022-08-31,311.34480773317927,309.13705098105044
2022-09-01,310.73323003996916,308.72432693480215
2022-09-02,308.8030851131637,305.8829329812819
2022-09-06,308.1512187807733,305.6452150821655
2022-09-07,308.472650323913,307.10508260540246
2022-09-08,309.47162021486673,309.5201959875017
2022-09-09,310.7431454446566,312.06188101461987
2022-09-12,311.3972207192538,313.1298857461329
2022-09-13,310.3818308720553,311.0246728186605
2022-09-14,310.08304387622115,310.49986356374137
2022-09-15,309.80877387607705,310.07285176430713
2022-09-16,309.47597231949027,309.5753408484459
2022-09-19,308.50888239328674,307.96343653929983
2022-09-20,307.07669682479224,305.6786644408786
2022-09-21,304.90344119309077,302.2831177153387
2022-09-22,305.6584519109989,304.5752470835172
2022-09-23,306.4307982806606,306.5127786907302
2022-09-26,306.3902869331307,306.66426012080063
2022-09-27,307.0202523392314,307.9833774719835
2022-09-28,311.7960719061321,316.6653193822629
2022-09-29,315.11762969793006,321.61818080414173
2022-09-30,316.7635516710392,323.0094943953296
2022-10-03,317.84410084377953,323.35707881927254
2022-10-04,320.275175554876,326.28705442632133
2022-10-05,322.69530266949926,328.9923373213114
2022-10-06,324.97105266278027,331.2822472174727
2022-10-07,325.7652950713012,330.79095316582334
2022-10-10,325.9210801568919,329.40981120925034
2022-10-11,326.70319686952377,329.5292159487335
2022-10-12,326.8019076809804,328.5437200259682
2022-10-13,328.2284539482196,330.2419012707689
2022-10-14,329.3025357955854,331.205417319998
2022-10-17,330.4492321032621,332.3094090058559
2022-10-18,331.8206597649729,333.813750246686
2022-10-19,331.9311439445307,332.9634777281958
2022-10-20,331.9577202474007,332.20012235994017
2022-10-21,334.0757287027285,335.45340353850656
2022-10-24,337.1636617735722,340.1640011639366
2022-10-25,340.4074020457604,344.7003856686837
2022-10-26,344.34980486605247,350.12092371961694
2022-10-27,347.4220230921833,353.4996003930178
2022-10-28,350.6653410502129,357.03509335360616
2022-10-31,353.80134238705256,360.22050351588234
2022-11-01,354.718463287625,359.27088205974525
2022-11-02,355.8815633530905,359.20077689788974
2022-11-03,358.04435912111137,361.2351437486879
2022-11-04,359.0731860720875,361.2001317658461
2022-11-07,361.28986201909703,363.58363311674907
2022-11-08,363.4271416225487,365.753955098308
2022-11-09,364.591060473182,366.1161012869359
2022-11-10,366.52051942058125,368.0661002990604
2022-11-11,365.1412258446013,363.9649844855007
2022-11-14,364.5777583800089,362.07696814629844
2022-11-15,362.9308612686063,358.59435145300347
2022-11-16,362.0055669013441,356.9623672348979
2022-11-17,362.5880298118824,358.3283146201259
2022-11-18,363.2116100854345,359.6209543915322
2022-11-21,363.6173835369571,360.3887234628439
2022-11-22,363.87473966387097,360.8326417507691
2022-11-23,364.21062703285725,361.4090606546181
2022-11-25,365.10335433285536,362.97214862691544
2022-11-28,365.9297948295937,364.26571136902544
2022-11-29,366.2747101391803,364.57973302542104
2022-11-30,367.82938946854733,367.1261449717339
2022-12-01,368.9954702538452,368.71353946804345
2022-12-02,370.7657538915662,371.2940821982281
2022-12-05,371.25883624770523,371.32786420307457
2022-12-06,371.50855828796614,371.0351775895205
2022-12-07,372.3082745501532,371.89064383047076
2022-12-08,372.9271975961151,372.40643298788103
2022-12-09,371.46434271752946,369.1610816784308
2022-12-12,371.30745555233216,368.7878797675491
2022-12-13,369.5839503462622,365.64754317773725
2022-12-14,368.9520196000115,364.9143401337566
2022-12-15,367.75216858743426,363.2230474356371
2022-12-16,366.67435447699745,361.9383578061724
2022-12-19,365.3512069977726,360.31907545693105
2022-12-20,364.53683102647364,359.76603791781156
2022-12-21,365.344138550791,362.15859718178945
2022-12-22,365.53937783554244,363.0610968713456
2022-12-23,366.16695962175265,364.5957905169545
2022-12-27,366.1485696916553,364.7340338084055
2022-12-28,366.1836868867364,364.9437978118829
2022-12-29,366.53022110033646,365.688386321269
2022-12-30,366.60427667562095,365.8407695691915
2023-01-03,366.50376976642707,365.66175887510803
2023-01-04,366.06491071242266,364.8949298997521

Answer: 9.0