package net.ackx.tradr

/**
 * Samples
 */
class Samples {

    static SAMPLE_1 = [
            459.99, 448.85, 446.06, 450.81, 442.8, 448.97, 444.57, 441.4, 430.47, 420.05, 431.14, 425.66, 430.58,
            431.72, 437.87, 428.43, 428.35, 432.5, 443.66, 455.72, 454.49, 452.08, 452.73, 461.91, 463.58, 461.14,
            452.08, 442.66, 428.91, 429.79, 431.99, 427.72, 423.2, 426.21, 426.98,
            435.69, 434.33, 429.8, 419.85, 426.24, 402.8, 392.05, 390.53, 398.67, 406.13, 405.46, 408.38, 417.2,
            430.12, 442.78, 439.29, 445.52, 449.98,
            460.71, 458.66, 463.84, 456.77, 452.97, 454.74,
            443.86, 428.85, 434.58, 433.26, 442.93, 439.66, 441.35
    ] as List<Double>

    static SAMPLE_1_TD = SAMPLE_1.collect { new Data(closing: it) }
}

/*
#   Close	12 Day EMA      26 Day EMA	    MACD	        Signal	        Histogram
0	459,99
1	448,85
2	446,06
3	450,81
4	442,8
5	448,97
6	444,57
7	441,4
8	430,47
9	420,05
10	431,14
11	425,66	440,8975
12	430,58	439,3101923077
13	431,72	438,1424704142
14	437,87	438,1005518889
15	428,43	436,6127746753
16	428,35	435,3415785714
17	432,5	434,9044126373
18	443,66	436,2514260777
19	455,72	439,2465912965
20	454,49	441,5917310971
21	452,08	443,2053109283
22	452,73	444,6706477086
23	461,91	447,3228557534
24	463,58	449,8239548683
25	461,14	451,5648848885	443,2896153846	8,2752695039
26	452,08	451,6441333672	443,9407549858	7,7033783815
27	442,66	450,261959003	443,8458842461	6,416074757
28	428,91	446,9770422333	442,7395224501	4,2375197833
29	429,79	444,3328818897	441,7802985649	2,5525833249
30	431,99	442,4339769836	441,0550912638	1,3788857199
31	427,72	440,1702882169	440,0673067257	0,1029814912
32	423,2	437,5594746451	438,8178765979	-1,2584019528
33	426,21	435,8134016228	437,8839598129	-2,0705581901	3,0375258687	-5,1080840588
34	426,98	434,4544167577	437,076259086	-2,6218423283	1,9056522293	-4,5274945576
35	435,69	434,6445064873	436,9735732278	-2,3290667405	1,0587084354	-3,3877751758
36	434,33	434,5961208739	436,7777529887	-2,1816321148	0,4106403253	-2,5922724401
37	429,8	433,858256124	436,2608823969	-2,4026262729	-0,1520129943	-2,2506132786
38	419,85	431,7031397973	435,0452614786	-3,3421216814	-0,7900347317	-2,5520869496
39	426,24	430,8626567515	434,3930198876	-3,5303631361	-1,3381004126	-2,1922627235
40	402,8	426,5453249436	432,0527961922	-5,5074712486	-2,1719745798	-3,3354966688
41	392,05	421,2383518754	429,0896261039	-7,8512742286	-3,3078345095	-4,543439719
42	390,53	416,5139900484	426,2333575036	-9,7193674552	-4,5901410987	-5,1292263566
43	398,67	413,7687608102	424,1916273182	-10,422866508	-5,7566861806	-4,6661803275
44	406,13	412,5935668394	422,8537289983	-10,2601621589	-6,6573813762	-3,6027807827
45	405,46	411,4960950179	421,5653046281	-10,0692096101	-7,339747023	-2,7294625871
46	408,38	411,0166957844	420,5886153964	-9,571919612	-7,7861815408	-1,7857380712
47	417,2	411,967973356	420,3376068485	-8,3696334924	-7,9028719311	-0,4667615613
48	430,12	414,7605928397	421,0622285634	-6,3016357237	-7,5826246896	1,280988966
49	442,78	419,0712708644	422,6709523735	-3,5996815091	-6,7860360535	3,1863545444
50	439,29	422,1818445776	423,9019929384	-1,7201483609	-5,772858515	4,0527101541
51	445,52	425,7723300272	425,5033267949	0,2690032323	-4,5644861655	4,8334893978
52	449,98	429,4965869461	427,3164136989	2,1801732471	-3,215554283	5,3957275301
53	460,71	434,2986504928	429,7900126842	4,5086378086	-1,6707158647	6,1793536733
54	458,66	438,046550417	431,9285302632	6,1180201538	-0,112968661	6,2309888148
55	463,84	442,0147734298	434,2923428363	7,7224305935	1,4541111899	6,2683194036
56	456,77	444,2848082867	435,957354478	8,3274538087	2,8287797137	5,498674095
57	452,97	445,6209916272	437,2175504426	8,4034411846	3,9437120079	4,4597291768
58	454,74	447,0239159923	438,5155096691	8,5084063232	4,8566508709	3,6517554523
59	443,86	446,5371596858	438,9113978417	7,625761844	    5,4104730656	2,2152887785
60	428,85	443,8160581957	438,1661091127	5,6499490829	5,458368269	    0,1915808139
61	434,58	442,3951261656	437,9004714007	4,4946547649	5,2656255682	-0,7709708033
62	433,26	440,9897221401	437,5567327784	3,4329893617	4,8990983269	-1,4661089652
63	442,93	441,2882264262	437,9547525726	3,3334738536	4,5859734322	-1,2524995786
64	439,66	441,037730053	438,0810671968	2,9566628561	4,260111317	    -1,3034484609
65	441,35	441,0857715833	438,3232103674	2,7625612158	3,9606012968	-1,198040081
*/
