mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-28 17:57:45 +00:00
459 lines
178 KiB
Plaintext
459 lines
178 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 46,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>QuanTAlib, 0.2.1</span></li></ul></div></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"#r \"nuget: QuanTAlib\"\n",
|
|
"#r \"nuget: Plotly.NET;\"\n",
|
|
"#r \"nuget: Plotly.NET.Interactive;\"\n",
|
|
"\n",
|
|
"using QuanTAlib;\n",
|
|
"using Plotly.NET;\n",
|
|
"using Plotly.NET.LayoutObjects;"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 47,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"8bb5a297-5aad-408f-9315-9cbfc44d1157\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_8bb5a2975aad408f93159cbfc44d1157 = function() {\r\n",
|
|
" var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\r\n",
|
|
" fsharpPlotlyRequire(['plotly'], function(Plotly) {\r\n",
|
|
" var data = [{\"type\":\"candlestick\",\"name\":\"SPY\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"close\":[452.95,457.35,446.6,448.7,447.26,450.94,457.54,449.32,440.46,439.02,446.1,446.6,437.06,434.23,429.57,421.95,428.3,437.75,436.63,429.98,437.89,435.71,432.17,419.43,416.25,427.41,425.48,420.07,417.0,426.17,435.62,441.07,444.52,444.39,449.59,443.8,450.49,452.69,455.91,461.55,458.7,451.64,452.92,456.8,451.03,446.52,448.77,447.57,439.92,438.29,443.31,437.79,437.97,445.04,444.71,438.06,426.04,428.51,416.1,417.27,427.81,412.0,414.48,416.38,429.06,413.81,411.34,398.17,399.09,392.75,392.34,401.72,400.09,408.32,391.86,389.46,389.63,396.92,393.89,397.37,405.31,415.26,412.93,409.59,417.39,410.54,411.79,415.74,411.22,401.44,389.8,375.0,373.87,379.2,366.65,365.86,375.07,374.39,378.06,390.08,388.59,380.65,380.34,377.25,381.24,381.96,383.25,388.99,388.67,384.23,380.83,378.83,377.91,385.13,381.95,392.27,394.77,398.79,395.09,395.57,390.89,401.04,406.07,411.99,410.77,408.06,414.45,414.17,413.47,412.99,411.35,419.99,419.99,427.1,428.86,429.7,426.65,427.89,422.14,413.35,412.35,413.67,419.51,405.31,402.63,398.21,395.18,396.42,392.24,390.76,397.78,400.38,406.6,410.97,393.1,394.6,390.12,385.56,388.55,384.09,377.39,374.22,367.95,364.31,363.38,370.53,362.79,357.18,366.61,377.97,377.09,373.2,362.79,360.02,357.74,356.56,365.97,357.63,366.82,371.13,368.5,365.41,374.29,378.87,384.92,382.02,379.98,389.02,386.21,384.52,374.87,371.01,376.35,379.95,382.0,374.13,394.69,398.51,395.12,398.49,395.45,394.24,396.03,394.59,399.9,402.42,402.33,395.91,395.23,407.68,407.38,406.91,399.59,393.83,393.16,396.24,393.28,398.95,401.97,399.4,389.63,383.27,380.02,380.54,386.23,380.72,382.91,381.4,376.66,383.44,382.43,380.82,383.76,379.38,388.08,387.86,390.58,395.52,396.96,398.5,397.77,391.49,388.64,395.88,400.63,400.2,400.35,404.75,405.68,400.59,406.48,410.8,416.78,412.35,409.83,415.19,410.65,407.09,408.04,412.83,412.64,413.98,408.28,407.26,399.09,398.54,400.66,396.38,397.73,396.26,394.74,397.81,404.19,404.47,398.27,398.92,391.56,385.91,385.36,391.73,389.28,396.11,389.99,393.74,398.91,392.11,393.17,395.75,396.49,395.6,401.35,403.7,409.39,410.95,408.67,407.6,409.19],\"open\":[450.68,455.5,450.95,446.35,449.51,446.73,455.22,451.34,449.41,439.92,443.73,443.93,443.22,437.33,431.89,432.66,411.02,429.61,432.03,435.04,432.37,440.47,431.75,431.55,419.62,425.14,422.52,428.12,420.89,419.77,429.89,433.59,438.0,444.34,445.86,446.91,445.94,451.16,452.06,460.02,460.34,457.89,453.31,453.13,455.22,446.89,445.59,447.97,444.11,443.08,438.03,443.55,436.81,437.86,446.92,448.54,436.91,423.67,425.83,417.24,422.29,423.59,412.07,415.01,417.08,424.55,411.1,405.1,404.49,398.07,389.37,396.71,399.98,406.53,403.5,388.62,393.25,392.83,392.56,392.31,398.67,407.91,413.55,415.17,409.42,412.4,414.78,408.1,413.93,409.34,394.88,379.85,376.85,377.36,370.51,365.51,371.89,370.62,376.64,381.4,391.05,390.23,381.23,376.24,376.56,375.88,382.11,385.12,387.27,385.85,383.65,375.1,373.61,382.55,388.38,386.08,392.47,394.16,398.92,395.75,393.84,394.36,401.89,407.58,409.15,409.12,410.3,414.37,409.66,415.25,412.22,418.78,422.99,422.03,424.77,427.73,425.91,426.86,424.98,417.05,412.9,412.11,415.24,419.39,402.2,403.85,399.93,392.89,400.28,393.13,390.43,395.39,402.74,408.78,401.83,394.47,392.96,384.14,382.26,385.06,386.11,376.58,370.58,366.41,368.02,364.38,366.81,361.8,361.08,372.4,373.39,375.62,368.97,363.96,358.24,358.17,349.21,368.55,364.01,375.13,368.99,368.03,365.12,375.89,378.79,381.62,383.07,379.87,386.44,390.14,383.9,371.47,377.0,377.71,381.11,379.93,388.05,395.59,396.66,401.15,396.78,390.46,397.74,394.64,396.63,399.55,401.83,399.09,396.05,395.49,408.77,402.25,403.95,399.42,392.94,395.14,394.94,394.11,410.22,401.61,394.3,385.18,383.47,379.23,383.25,383.05,379.65,382.79,381.33,379.63,380.64,384.37,383.18,381.72,382.61,390.37,387.25,392.23,396.67,393.62,398.48,399.01,389.36,390.1,396.72,398.88,395.95,403.13,403.66,402.8,401.13,405.21,414.86,411.59,409.79,408.87,413.13,414.41,405.86,408.72,411.24,410.35,408.79,406.06,403.06,399.52,401.56,395.42,399.87,397.23,395.41,392.68,399.71,405.05,404.42,398.39,399.74,390.99,381.81,390.5,385.89,386.82,393.22,390.8,397.24,398.73,395.09,391.84,398.12,395.77,399.93,404.09,404.66,408.85,411.62,407.91,406.77],\"high\":[453.63,458.12,452.97,452.78,450.99,451.92,457.88,457.71,451.61,441.6,446.28,448.06,446.57,438.66,435.5,433.26,428.76,437.84,438.2,437.17,439.72,441.11,433.37,432.3,427.21,429.51,426.43,428.77,424.55,426.84,435.68,441.07,444.86,446.46,450.58,448.49,450.5,452.98,455.91,462.07,461.2,458.76,453.46,456.91,457.83,448.93,450.69,450.63,445.0,445.75,444.11,444.73,439.75,445.8,447.57,450.01,438.08,428.69,426.04,422.92,429.64,425.87,415.92,418.93,429.66,425.0,414.8,406.41,406.08,404.04,395.8,403.18,403.97,408.57,403.8,394.14,397.03,397.73,395.15,399.45,407.04,415.38,416.46,416.24,417.44,414.04,416.61,416.22,415.82,411.74,395.78,381.81,377.94,383.9,370.94,369.38,376.53,378.72,378.83,390.09,391.36,393.16,382.27,380.66,381.7,381.98,385.87,389.83,390.64,386.87,386.16,381.92,379.05,385.25,389.09,392.87,396.26,398.84,400.18,396.47,394.06,402.88,406.8,413.03,413.41,413.0,415.68,415.09,414.15,417.62,412.75,420.14,424.95,427.21,429.41,431.73,429.5,428.61,425.26,417.23,415.42,415.11,419.56,419.96,405.84,404.1,401.24,396.78,401.56,394.12,398.59,400.86,407.51,411.73,403.1,396.2,395.96,386.25,388.55,386.12,389.31,378.3,370.62,370.21,370.4,372.3,367.11,365.91,368.55,378.0,379.46,378.72,373.29,364.21,363.03,359.82,367.51,370.26,367.98,375.45,371.85,372.67,374.8,380.06,385.25,387.58,385.0,389.52,388.4,390.39,388.63,374.2,378.87,380.57,385.12,381.14,395.04,399.35,400.18,402.31,397.78,394.95,397.81,395.82,400.07,402.93,402.91,400.81,397.3,407.68,410.0,407.86,404.93,399.99,395.64,397.36,397.62,398.95,410.49,405.5,395.25,386.58,383.82,382.23,387.41,386.21,383.06,383.15,383.39,384.35,382.58,386.43,385.88,381.84,389.25,393.7,390.65,395.6,398.49,399.1,400.23,400.12,391.08,396.04,402.65,401.15,400.7,404.92,408.16,405.13,406.53,413.67,418.31,416.97,411.29,416.49,414.53,414.57,408.44,412.97,415.05,414.06,412.91,407.51,404.16,401.13,402.2,397.25,401.29,399.28,396.69,398.69,404.45,407.45,404.67,399.71,401.48,393.16,390.39,393.45,389.49,396.47,394.4,394.17,399.41,402.49,399.29,395.84,398.92,396.49,401.6,404.35,409.7,411.37,411.92,408.7,409.48],\"low\":[446.94,453.05,445.71,443.83,445.85,445.22,455.01,447.2,438.94,435.34,443.18,441.94,436.42,431.82,425.86,421.35,410.64,427.86,430.7,427.11,431.57,433.8,427.88,419.36,415.12,422.82,420.44,419.53,415.79,418.42,424.8,433.19,437.22,440.68,445.86,443.71,444.76,448.43,450.06,457.18,456.47,451.16,449.14,452.26,449.82,443.47,443.53,445.94,439.39,436.65,437.84,437.68,435.61,437.68,443.48,437.1,425.44,418.84,416.07,415.01,417.6,411.21,405.02,413.36,413.71,409.44,405.73,396.5,394.82,391.96,385.15,395.61,397.6,402.58,390.55,387.11,380.54,390.38,386.96,391.89,398.45,407.7,410.03,406.93,407.04,409.51,410.55,407.61,410.38,401.44,389.75,373.3,370.59,372.12,364.08,362.17,371.81,370.18,372.89,381.37,387.44,380.53,378.42,372.56,373.8,372.9,379.6,383.27,385.66,383.5,378.99,374.66,371.04,380.54,380.66,385.39,391.03,391.63,392.75,393.21,389.95,394.05,398.15,406.77,408.4,406.82,410.0,412.44,409.6,411.83,410.22,416.72,419.21,421.03,424.71,426.88,424.54,425.5,421.22,412.4,411.77,411.39,414.09,405.25,401.2,396.0,395.04,390.04,390.33,388.42,390.2,394.12,402.46,408.46,391.92,391.12,388.78,382.11,382.18,381.2,377.38,373.44,363.29,363.03,360.87,362.6,359.7,357.04,359.21,366.57,370.95,372.68,360.94,357.67,355.71,356.3,348.11,356.96,357.28,367.52,365.55,364.61,363.54,373.11,378.67,381.35,379.33,379.68,385.26,383.29,374.76,368.79,370.0,375.53,377.72,373.61,385.64,393.61,394.83,394.49,394.79,390.14,393.04,392.66,395.15,399.31,401.54,395.11,393.3,393.48,404.75,402.14,398.17,391.64,391.97,393.27,393.15,393.41,399.07,396.31,387.89,381.04,378.28,377.85,382.69,374.77,378.03,379.65,376.42,379.08,378.43,377.83,380.0,378.76,379.41,387.67,386.27,391.38,392.42,393.34,397.06,391.28,387.26,388.38,395.72,397.64,393.56,400.03,403.44,400.28,400.77,402.35,412.88,411.09,408.1,407.57,409.93,405.81,405.01,408.24,408.51,409.47,408.14,404.05,398.82,397.02,396.25,393.64,396.75,396.15,393.38,392.33,399.03,404.01,397.63,396.59,390.53,384.32,380.65,387.05,383.71,386.29,388.55,390.07,395.58,392.07,390.35,389.4,395.56,393.69,398.68,401.76,404.55,408.44,407.24,405.88,405.68],\"increasing\":{\"marker\":{},\"line\":{}},\"decreasing\":{\"marker\":{},\"line\":{}}}];\r\n",
|
|
" var layout = {\"width\":1200,\"height\":400,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}},\"xaxis\":{\"rangeslider\":{\"visible\":false,\"yaxis\":{}}},\"margin\":{\"l\":30,\"r\":10,\"t\":40,\"b\":30,\"pad\":1,\"autoexpand\":false},\"title\":{\"text\":\"SPY\"}};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('8bb5a297-5aad-408f-9315-9cbfc44d1157', data, layout, config);\r\n",
|
|
" });\r\n",
|
|
"};\r\n",
|
|
"if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\r\n",
|
|
" var script = document.createElement(\"script\");\r\n",
|
|
" script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\r\n",
|
|
" script.onload = function(){\r\n",
|
|
" renderPlotly_8bb5a2975aad408f93159cbfc44d1157();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_8bb5a2975aad408f93159cbfc44d1157();\r\n",
|
|
"}\r\n",
|
|
"</script></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"string symbol=\"SPY\"; // we'll focus on SPY symbol\n",
|
|
"int warmup = 50; // we'll allow 50 bars to pass by with no trading - for warm-up\n",
|
|
"Yahoo_Feed bars = new(symbol,350); //collect bars of symbol from Yahoo feed\n",
|
|
"TSeries data = bars.Close; //we need just one average value - (Open+High+Low+CLose)/4\n",
|
|
"\n",
|
|
"//make a chart\n",
|
|
"var d = Chart2D.Chart.Candlestick<double, double, double, double, DateTime, string>(bars.Open.v.Skip(warmup).ToList(), bars.High.v.Skip(warmup).ToList(), \n",
|
|
"bars.Low.v.Skip(warmup).ToList(), bars.Close.v.Skip(warmup).ToList(), bars.Open.t.Skip(warmup).ToList(), symbol)\n",
|
|
" .WithSize(1200,400).WithMargin(Margin.init<int, int, int, int, int, bool>(30,10,40,30,1,false)).WithXAxisRangeSlider(RangeSlider.init(Visible:false)).WithTitle(symbol);\n",
|
|
"d"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 48,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"0c6f2d29-6b96-477e-9ea1-dcb79e3a5a25\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_0c6f2d296b96477e9ea1dcb79e3a5a25 = function() {\r\n",
|
|
" var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\r\n",
|
|
" fsharpPlotlyRequire(['plotly'], function(Plotly) {\r\n",
|
|
" var data = [{\"type\":\"scatter\",\"name\":\"Fast MA\",\"mode\":\"lines\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[447.9196197169718,452.4447726549954,451.2790039881446,450.4903548692874,449.87314377918614,449.52802134315635,451.5204602946911,452.10701932596993,447.04157224495106,443.35234828385956,442.0009327471456,441.58578106607877,440.8499311313461,438.8493198101972,435.2279902234009,428.07036749426993,424.40949548516375,429.707097503619,432.6956269653641,433.9701736365745,434.7322160659452,435.2225809789188,435.3634067409524,428.07228043869685,421.12512526924166,420.5364155775508,420.5791199721276,420.7288418179235,420.5466550939826,420.9322303853855,427.5337676679214,434.88196697020254,439.29958208616614,442.02859245936827,444.0780895221718,445.36178569509036,446.3769484705386,447.4000543950113,448.8864952711092,453.09744009474673,455.97098255128304,457.2437884657698,457.71769789265346,457.84471704665856,457.5534588022308,456.2930863113011,454.97591788286485,453.6504942813524,450.56755980166065,447.52893459775896,445.3297598149227,443.56892269778456,442.1008228908385,441.22221970591414,440.8924216593896,440.6446638140341,433.71956177109473,430.1804309876443,422.73155490058434,419.0357398295236,419.0275883500575,416.335769123745,414.75434933454085,413.96567929751365,419.37355121210993,418.76967493252727,417.38621077096826,407.9510570635594,403.09339679834255,399.22273039774797,396.61025072219155,395.5460580229242,395.23227470510665,397.4665270681253,396.59950498265243,394.8705822840139,393.57808658695706,392.9213724472751,392.6711291622901,392.8341093531525,395.11550686413676,405.9427312019774,411.79135316965517,414.86768885202025,416.46331661097247,417.0649667916998,417.0478409655635,416.8706205003745,416.48635680462445,413.00253427323634,401.31466697940954,387.0278344384283,378.98721368803245,374.57244561898545,371.4796529626416,369.33751337543384,368.454351861933,368.3292190983555,368.890690548546,378.7230051857109,384.0614669272587,386.82154527498085,387.87530767761194,387.68831528793334,386.92490461636174,385.997965207976,385.17236530509086,384.8145990667332,384.9056917407066,385.09423299552157,385.0703444264597,384.6978345781795,383.9978443676573,383.44928202708843,383.0216848079541,384.09638099705563,386.0645911766019,388.8382295087484,390.9903489859609,392.6328192957012,393.6276707860136,394.78447419663235,397.49799666442624,402.8172355089856,406.35421781127604,408.57242022925095,410.16771966637975,411.41906320691925,412.40145967388275,413.1323368556536,413.56193081449317,414.2270621031734,415.07712646135104,418.0220490497465,421.05192952671564,423.47507520702413,425.2872962616129,426.6221651183593,427.2955470213348,423.438791178625,420.1196995347091,417.83533126436447,416.5418368121796,412.2946930922694,408.24718464534857,404.66845403530925,401.7933898386132,399.75286286551255,398.0937113482289,396.58562132811153,395.5387546792816,395.13620806661527,397.5458211300666,402.2540684343462,400.0130251843528,398.52617264462884,396.9810063516224,394.184659307066,392.15290486076253,390.47587839360887,386.2819172161819,381.54182029915097,374.9788549318482,369.9334017823273,366.7037242119086,364.9608333057382,363.9668477647954,361.9098685953179,361.28002510418213,368.2478673666626,372.05476629295384,374.22588103009997,371.06615975599163,367.0434621161521,364.129606536128,361.9798921719691,361.08104184288493,360.40965811337236,360.5524927710414,362.3275955685167,363.79911423947044,364.85698063384245,366.21034153935125,369.16457781390466,375.45325057979653,379.4207292310938,381.7421873254192,383.5876157230665,384.89984013013395,385.743059105254,384.0401496541875,380.31610681094816,377.9399007533233,376.69608903411597,376.3755030879646,376.30309227252894,384.6315777708753,392.7228845325111,397.22146232784246,399.61700651022346,400.6434817649769,400.76517804601866,400.4316319596634,399.8310617179403,399.3698433597951,399.26932992527253,399.4932874806039,399.6126271367961,399.4832931140359,400.9817186332764,402.30519225747315,403.42880191144013,404.02234438616273,402.4741512174637,400.79236903764325,399.40410995400833,398.16770003438955,397.3354356626521,397.0623046449789,397.1328629641791,396.0023824323203,390.7150284228391,386.42684168693734,383.6742228830201,382.1891171548569,381.3554622628257,380.9677404223201,380.7952108893142,380.49158364669177,380.3411980063167,380.3498517557477,380.4013246210009,380.5956532341821,380.70317891103747,381.480985551781,382.351455559329,383.4152160865673,386.3870770937583,389.2800137968166,391.62714216916527,393.5143814893298,394.67877232379607,394.7783273364822,394.7711501577441,395.89593610436776,396.844121713146,397.6818666012972,398.82792935356537,400.01790504999474,400.9578773098585,401.87144737708286,403.88209762858844,410.27522852981514,413.98252219457333,415.79358173371,416.61919703325015,416.7204852051349,415.95572205235635,414.9274925986997,414.0362161933729,413.3891601259952,413.0433945224521,412.66646003290896,412.13081116367204,406.1471597103887,402.52145079581584,400.3709174864986,398.9947961338782,398.09897884510514,397.4480755579949,396.86706376487916,396.4682291494794,397.5477716859948,398.679398996664,399.3962353989135,399.77064641611486,397.401250088285,391.1912245337995,387.9620128032816,386.595655523071,386.07578935610496,387.5937454918482,388.74779618985104,389.6993646861347,391.5878966116724,392.7870525273002,393.50518000968026,394.00884968807145,394.44750688356066,394.81820292166043,395.7219515807711,397.40100587866146,403.190080818939,407.0028688182145,409.2868134498447,410.49098772721806,411.05234901621964],\"marker\":{},\"line\":{\"color\":\"blue\",\"width\":2.0}},{\"type\":\"scatter\",\"name\":\"Slow MA\",\"mode\":\"lines\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[439.8685534949377,444.43210821096903,447.06462521706635,449.0274264157967,450.4404744197549,451.4368823463985,452.067554351427,452.44634397900785,450.5569205823818,447.5400413076695,445.24359197545186,443.54979892161657,442.4361298941941,440.98890341090066,438.16166363881564,433.91974359109133,430.66116947444795,430.02383145856106,430.0045446345248,430.04087007091596,430.19419822880303,430.4054274144049,430.6356571566264,429.179464776753,426.1012693893813,424.13640675775605,422.6885781442102,421.62290748975136,420.8609033215431,420.3636774435758,422.7143501965095,427.02808763550263,432.1149601865233,435.700753219868,438.84268115405706,441.30118303797366,443.1870602379049,444.7535271615422,446.35894704959657,449.552095925913,452.0996984681776,454.0931559713402,455.61229525221177,456.76153988562527,457.5770076316758,457.93183119304666,458.0423722656891,457.94030374913973,456.62985154426156,454.64452256390734,452.9023305662509,451.33200239684305,449.8930374010502,448.61567305580434,447.5088727185154,446.51845725566204,442.01039548012045,438.56542300949053,432.42159472123745,427.38752381068,423.86189372602337,420.754786358399,418.43418045427154,416.6366455664589,416.51032480139145,416.39172598469037,415.99041842483484,412.2809509016336,408.03433838819285,402.92107356189507,399.29559555160154,396.5445877442,394.5234633148449,393.7694308395767,393.75884856857516,393.52549154162205,393.2644595198055,393.0515325031234,392.88379076359166,392.7844916320116,393.0785065943306,397.4095135019699,400.87395117404446,403.62343814012104,405.89893675444347,407.7332431472051,409.20314237772163,410.4031932526762,411.365211367933,411.7754956277692,408.2572079474884,400.8689566780368,392.52428814656474,386.57413551319826,380.372534002281,375.4431161256077,371.70453878337764,368.9497457501374,367.02730483867293,369.7857054501297,372.4952945109326,374.71993828076444,376.52056826340726,377.931664809615,379.027917352228,379.87641465338004,380.54027802454345,381.1109484721583,381.6408945203725,382.12436132253265,382.5321161126637,382.83585593589265,383.01941311020533,383.1392573504799,383.2064985154132,383.39767565629023,383.9107864009481,385.1929424312726,386.36371586215057,387.4447818542273,388.4117765714647,389.3636836466581,390.99971613150734,395.2188368348063,398.6454058858547,401.431608480859,403.74624439405414,405.6947571073457,407.34850887517484,408.7564808031116,409.94354623443263,411.04412230257856,412.0590971302585,414.13064956689107,416.7355162578058,419.07951677892254,421.06713937891226,422.75632425975795,424.1473330009752,424.77754986295304,424.71732005209975,424.52620153471275,424.25841535165,422.4708737280699,419.4240043469063,415.21645433547354,411.02888594802255,407.6896874837228,404.95970355839637,402.6476438017322,400.745390610319,399.22440855994853,398.39111854561355,398.95446830180305,398.882220461988,398.7136543817489,398.2256453544468,396.741786571612,395.4665943377123,394.23221781939134,391.1280447498437,386.8776523249951,380.80416774037326,375.0484119015989,370.9644884109396,367.8386863196328,365.45322032614126,363.59407670370695,362.1671555167073,363.56331258027967,365.24088046644255,366.61026957542754,367.36216836709144,367.2375479799924,366.5402993486749,365.7026880425027,364.951828963501,364.2509620216876,363.6524166194009,363.28113973940754,363.05706742419284,362.9456383982731,363.06939235265617,364.0380338308632,367.72378964048124,370.6884155521819,373.0986429875564,375.4370080489109,377.40264092272207,379.0551304377688,380.2896354698515,380.75970349295835,381.04284228110066,381.2013228336554,381.29475875865796,381.29902479292497,383.26875821652294,387.0512054806221,389.8805659019173,392.0362873616107,393.72253071199134,395.01943454788744,396.00953547215636,396.7463779582433,397.3172475515692,397.79996776483546,398.2405511543892,398.6141266157718,398.90391189516754,399.2918789778204,399.71454381440594,400.1856946540827,400.647635089491,400.9904895966817,401.15721142077456,401.2144628731406,401.15333735443573,401.02330873458277,400.88184256713475,400.74226564362544,400.4027643423059,398.1874357439655,394.5846397638234,391.73225739333867,389.4551400668252,387.6208267819114,386.1473570404511,384.95666140228957,383.952467806116,383.12556731281023,382.45389257850474,381.904377106546,381.47543618814933,381.12506403645284,380.8941231884295,380.7954501052607,380.8496957540766,381.88037233102085,383.51331357158875,385.2875281588682,386.86302476098706,388.22723901099505,389.3560702600773,390.31135962927056,391.3892898559001,392.37436419198355,393.27533914443177,394.40278620300785,395.615736163075,396.7022876753762,397.70599961123395,399.26340832741266,404.24411274353537,408.11792827302025,411.07788241243395,413.33065236244215,414.999951273943,416.1642326291494,416.9087124002177,417.3479364339851,417.5660508635622,417.6365328831145,417.5665915855548,417.36358216446735,414.68499947403313,411.75237327014946,409.38298290106275,407.3850232399456,405.7221046981341,404.3151921874761,403.09595604831117,402.0426413437609,401.20949730874696,400.6052592793644,400.1379987433052,399.77219984330776,398.97169879806694,395.95883363296986,393.0875650704217,390.8743158841009,389.19417027200757,388.2289291193801,387.57342759375115,387.1822913679361,387.4147190411161,387.7292383686641,388.09432524079017,388.5063507959469,388.9627507855316,389.4486590749813,390.1283802461691,391.32141639785334,395.9633349575697,400.6488275452981,404.27455355851976,407.04153523295673,409.12831443721024],\"marker\":{},\"line\":{\"color\":\"red\",\"width\":2.0}}];\r\n",
|
|
" var layout = {\"width\":1200,\"height\":400,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}},\"margin\":{\"l\":30,\"r\":10,\"t\":40,\"b\":30,\"pad\":1,\"autoexpand\":false},\"xaxis\":{\"rangeslider\":{\"visible\":false,\"yaxis\":{}}},\"title\":{\"text\":\"slow MA and fast MA of SPY OHLC4\"}};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('0c6f2d29-6b96-477e-9ea1-dcb79e3a5a25', data, layout, config);\r\n",
|
|
" });\r\n",
|
|
"};\r\n",
|
|
"if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\r\n",
|
|
" var script = document.createElement(\"script\");\r\n",
|
|
" script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\r\n",
|
|
" script.onload = function(){\r\n",
|
|
" renderPlotly_0c6f2d296b96477e9ea1dcb79e3a5a25();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_0c6f2d296b96477e9ea1dcb79e3a5a25();\r\n",
|
|
"}\r\n",
|
|
"</script></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"JMA_Series fastMA = new(data,12); //typically MACD uses EMA(12), but let's try with superior JMA(12)\n",
|
|
"JMA_Series slowMA = new(data,26); //likewise, let's use JMA(26) instead of EMA(26)\n",
|
|
"\n",
|
|
"//make a chart\n",
|
|
"var cfast = Chart2D.Chart.Line<DateTime,double,bool>(fastMA.t.Skip(warmup).ToList(), fastMA.v.Skip(warmup).ToList(), false, \"Fast MA\").WithLineStyle(Width: 2, Color: Color.fromString(\"blue\"));\n",
|
|
"var cslow = Chart2D.Chart.Line<DateTime,double,bool>(slowMA.t.Skip(warmup).ToList(), slowMA.v.Skip(warmup).ToList(), false, \"Slow MA\").WithLineStyle(Width: 2, Color: Color.fromString(\"red\"));\n",
|
|
"var chart = Chart.Combine(new []{cfast,cslow}).WithSize(1200,400).WithMargin(Margin.init<int, int, int, int, int, bool>(30,10,40,30,1,false))\n",
|
|
" .WithXAxisRangeSlider(RangeSlider.init(Visible:false)).WithTitle($\"slow MA and fast MA of {symbol} OHLC4\");\n",
|
|
"chart"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 49,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"18dec751-7e2f-4979-be4a-6ac3fc553df2\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_18dec7517e2f4979be4a6ac3fc553df2 = function() {\r\n",
|
|
" var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\r\n",
|
|
" fsharpPlotlyRequire(['plotly'], function(Plotly) {\r\n",
|
|
" var data = [{\"type\":\"scatter\",\"name\":\"MACD\",\"mode\":\"lines\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[8.05106622203408,8.01266444402637,4.214378771078259,1.4629284534906901,-0.5673306405687413,-1.908861003242123,-0.5470940567359435,-0.33932465303792014,-3.515348337430737,-4.18769302380997,-3.242659228306252,-1.9640178555378043,-1.586198762847971,-2.1395836007034745,-2.9336734154147166,-5.849376096821402,-6.2516739892842,-0.3167339549420376,2.691082330839322,3.929303565658529,4.538017837142149,4.817153564513887,4.727749584326034,-1.107184338056129,-4.976144120139622,-3.5999911802052225,-2.1094581720826113,-0.8940656718278319,-0.31424822756048343,0.5685529418096849,4.819417471411896,7.853879334699911,7.184621899642821,6.3278392395002925,5.235408368114747,4.0606026571167035,3.1898882326336775,2.646527233469101,2.5275482215126317,3.545344168833708,3.8712840831054223,3.150632494429601,2.105402640441696,1.0831771610332908,-0.023548829445019237,-1.638744881745538,-3.066454382824247,-4.289809467787336,-6.062291742600905,-7.115587966148382,-7.5725707513282146,-7.763079699058494,-7.792214510211693,-7.393453349890194,-6.616451059125836,-5.8737934416279245,-8.29083370902572,-8.384992021846244,-9.690039820653112,-8.351783981156416,-4.834305375965869,-4.41901723465395,-3.679831119730693,-2.6709662689452784,2.8632264107184824,2.3779489478368987,1.395792346133419,-4.329893838074213,-4.940941589850297,-3.6983431641471043,-2.685344829409985,-0.9985297212757587,0.7088113902617579,3.69709622854856,2.840656414077273,1.3450907423918466,0.31362706715157174,-0.13016005584830737,-0.2126616013015905,0.04961772114086216,2.0370002698061853,8.53321770000747,10.917401995610703,11.244250711899213,10.564379856529001,9.33172364449473,7.84469858784189,6.467427247698311,5.1211454366914495,1.2270386454671325,-6.942540968078845,-13.841122239608524,-13.537074458532288,-12.001689894212802,-8.892881039639406,-6.10560275017383,-3.2501869214446515,-0.6205266517819155,1.8633857098730573,8.937299735581234,11.56617241632614,12.10160699421641,11.354739414204687,9.756650478318363,7.89698726413377,6.121550554595956,4.63208728054741,3.7036505945748672,3.26479722033406,2.9698716729889156,2.5382283137960258,1.8619786422868287,0.9784312574519731,0.3100246766085206,-0.18481370745911363,0.6987053407654003,2.153804775653782,3.645287077475757,4.626633123810336,5.188037441473909,5.215894214548882,5.420790549974242,6.498280532918898,7.598398674179293,7.708811925421344,7.140811748391968,6.421475272325608,5.724306099573539,5.052950798707911,4.375856052542019,3.6183845800605354,3.182939800594852,3.018029331092521,3.8913994828554337,4.316413268909855,4.3955584281015945,4.220156882700621,3.8658408586013593,3.148214020359603,-1.3387586843280133,-4.597620517390624,-6.6908702703482845,-7.71657853947039,-10.17618063580045,-11.176819701557747,-10.54800030016429,-9.235496109409326,-7.936824618210267,-6.865992210167462,-6.0620224736206865,-5.206635931037397,-4.088200493333261,-0.8452974155469519,3.299600132543162,1.1308047223647577,-0.1874817371200379,-1.2446390028243854,-2.5571272645460112,-3.313689476949776,-3.756339425782471,-4.846127533661786,-5.335832025844127,-5.825312808525041,-5.115010119271631,-4.26076419903103,-2.877853013894594,-1.4863725613458882,-1.6842081083890434,-0.8871304125251527,4.684554786382932,6.813885826511296,7.6156114546724325,3.7039913889001923,-0.19408586384031423,-2.4106928125469267,-3.7227958705336164,-3.8707871206160576,-3.84130390831524,-3.0999238483595377,-0.9535441708908365,0.7420468152776039,1.9113422355693501,3.1409491866950816,5.126543983041472,7.729460939315288,8.732313678911908,8.643544337862807,8.150607674155594,7.497199207411882,6.68792866748521,3.750514184335998,-0.4435966820101953,-3.102941527777375,-4.50523379953944,-4.91925567069336,-4.995932520396025,1.3628195543523702,5.671679051888987,7.340896425925166,7.580719148612786,6.920951052985572,5.745743498131219,4.4220964875070194,3.084683759697043,2.052595808225874,1.469362160437072,1.2527363262146878,0.9985005210243116,0.5793812188683773,1.6898396554560122,2.5906484430672094,3.243107257357451,3.3747092966717105,1.4836616207820157,-0.3648423831313039,-1.8103529191322423,-2.9856373200461803,-3.687873071930653,-3.8195379221558596,-3.6094026794463616,-4.400381909985583,-7.472407321126411,-8.157798076886081,-8.058034510318578,-7.266022911968321,-6.265364519085665,-5.179616618130979,-4.161450512975364,-3.460884159424211,-2.784369306493545,-2.1040408227570424,-1.5030524855450835,-0.879782953967208,-0.42188512541537193,0.5868623633514858,1.55600545406827,2.565520332490678,4.506704762737456,5.766700225227851,6.339614010297055,6.651356728342762,6.451533312801018,5.4222570764049465,4.4597905284735475,4.506646248467689,4.469757521162478,4.406527456865433,4.425143150557517,4.402168886919753,4.255589634482249,4.16544776584891,4.6186893011757775,6.03111578627977,5.86459392155308,4.715699321276077,3.288544670807994,1.7205339311918806,-0.20851057679305995,-1.981219801518023,-3.3117202406122033,-4.176890737567021,-4.593138360662408,-4.90013155264586,-5.23277100079531,-8.537839763644456,-9.230922474333624,-9.01206541456412,-8.390227106067414,-7.6231258530289665,-6.867116629481188,-6.228892283432003,-5.5744121942815354,-3.661725622752158,-1.9258602827003983,-0.7417633443916998,-0.0015534271929027454,-1.5704487097819424,-4.767609099170329,-5.125552267140108,-4.278660361029893,-3.1183809159026055,-0.6351836275318874,1.174368596099896,2.517073318198584,4.173177570556334,5.05781415863612,5.41085476889009,5.5024988921245495,5.484756098029038,5.3695438466791074,5.593571334601961,6.079589480808124,7.226745861369295,6.35404127291639,5.012259891324959,3.4494524942613225,1.9240345790094011],\"marker\":{},\"line\":{\"color\":\"orange\",\"width\":2.0}},{\"type\":\"scatter\",\"name\":\"signal\",\"mode\":\"lines\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[7.018675466803563,8.321398904620711,6.725588512052947,3.5684703722364057,0.8371157574284598,-0.6072878838328095,-1.281824061222558,-1.4855926783165987,-2.013226783385214,-2.658406269383545,-3.0729326735510587,-3.198588659435414,-3.0846746674823393,-2.8876763730718165,-2.7568473646907794,-3.8276637825294744,-4.68486974785095,-2.6047623461197325,0.5979927744080529,2.4480327543545655,3.4735335391678053,4.097690199662308,4.488624430182309,1.623574316531235,-2.3998588600711517,-4.278399201418238,-4.865172425843862,-4.620314138914588,-3.9611423805610935,-3.081126105699517,2.2755257360587615,6.455725508542075,8.395403995120036,9.047930759921684,8.925881701366345,8.316230184153083,7.421438221668664,6.406214297145267,5.4164700710237,4.641780230572428,4.132492713102705,3.7770683418237088,3.4309646210495464,2.9984414345254056,2.4295200217300845,1.2729030184050067,-0.3742879659152274,-1.926734044088788,-3.7117334433395035,-5.135449487302317,-6.129233208199578,-6.850327536088827,-7.3694684328891515,-7.69149039156786,-7.788523974927691,-7.65851520959656,-7.607797399168379,-7.679336943876305,-7.944208469070589,-8.200931712200981,-7.1939458125715205,-6.3300370338733485,-5.649809154429306,-4.992825063491186,0.09839953162568182,2.0341232823096167,2.8742505449713756,-1.0522113028786242,-3.3297845869162783,-4.385671590441672,-4.667302709190161,-4.207626153737211,-2.6580930010767023,1.4403349105545011,3.4313096762025164,4.126614092328246,4.017222456244904,3.463473518681755,2.734754987495747,2.0284894146524737,1.6081570758570989,5.535079752272757,9.21818617871692,10.702281952739936,11.379327838600346,11.492603901064287,11.132916820089338,10.113372016310064,8.574944102152017,3.5034820630650234,-3.433198374754804,-10.623005318773473,-13.35065853320032,-14.488900767695492,-13.265324173569883,-9.395661904010083,-5.391273054349979,-2.4597316909616844,-0.11974639471403803,5.765537275990809,10.14543980755328,11.921684176507608,12.701791151343645,12.784765275313605,12.179039593593538,10.655433279777537,8.781789472396841,7.25933223530365,6.026785066634492,5.019969819387975,4.188757666730517,3.4691475283594175,2.790816918469903,2.124391775004854,1.4746110693535037,0.9735458679277676,0.7694559079853074,0.9373264649070807,1.4321730602427356,2.13546752484115,2.8915619376527384,3.6054107407078133,4.310494985761142,5.056443531665836,5.7850765929986805,6.377511333407944,6.743705876668631,6.853539295629784,6.724050432253095,6.395268551256166,5.906877248717706,5.326386752386255,4.734555805674633,4.27945497417575,4.017319165466493,3.917898686162068,3.908196580021989,3.9100662212651467,3.839774608868859,1.502614316285607,-2.590374752470196,-5.227512761361847,-6.591331823425966,-8.037250224508846,-9.231109146902043,-10.012854756582906,-10.384409979312144,-10.346091878665662,-9.952363275885093,-9.302721208619593,-8.486641228936652,-7.549678543044779,-4.090760883795509,1.2365129707963698,3.6251861321770247,4.2770065699456605,3.9240634186451495,2.780084730742887,1.4974058590127721,0.2290734418110354,-1.0011505905254228,-2.1485971402045356,-3.1854354983856332,-3.9977188842033202,-4.500338661596972,-4.623314183887569,-4.09220519153741,-3.5413139011137225,-2.957408586210522,1.9577107216344771,5.610207915785836,7.148992666972214,6.208937680016954,2.492801171511809,-0.7406671401191836,-2.3720426238927583,-3.2693462100450557,-3.7602638069239034,-3.9529917033838595,-3.5947483582043933,-2.1905254441212074,-0.6626238781142235,0.7143380664092724,2.6764206669684762,5.982294157728166,7.68966219136853,8.606775190528769,9.025169218921159,9.090387184933086,8.879068287252396,7.04714173608517,2.200853985099765,-1.615035018116599,-3.4474826143411144,-4.4443898688172885,-4.991428623507837,-1.7792386636477007,2.7152466253489234,5.624626828109934,7.101892122992986,7.75729168750439,7.85842661783537,7.533937904219043,6.831529503453373,5.888780112103158,4.873177115857698,3.8948078969549416,3.02051912725271,2.261161415059787,1.7402133461419924,1.5208392769541925,1.5832682918595573,1.8278535615938816,1.9789879639214218,1.7272244908600807,0.8720852437052299,-0.23511613526876995,-1.1874872655642967,-2.0079781284328244,-2.661022182559644,-3.214928717865101,-4.757539029922144,-6.052252185447937,-6.945365544122857,-7.483586488943146,-7.669598557649063,-7.517427117021061,-7.072702676225368,-6.424052842645653,-5.656107121059138,-4.831817072595143,-3.999082071796593,-3.1845944791602077,-2.414895905592549,-1.6543739282498322,-0.8710963905105377,-0.044164931320261,1.6441230716809765,3.46731559291934,4.7008190748895515,5.566387479262619,6.1551944690239155,6.441435242332749,6.415870862519832,6.192915925897462,5.879882920412657,5.548767584965253,5.247253013948155,4.994965536426518,4.784017281225964,4.60595063867576,4.5016801961784125,4.587208244524267,4.794178217605085,4.943304579041321,4.831601681617778,3.888962626807502,1.6652349727010138,-0.5763242624202922,-2.059021031592921,-2.996928768053942,-3.637162487146967,-4.120382664623708,-4.519204097997898,-7.225112176818352,-8.671369557145484,-9.38678971553053,-9.634746261959856,-9.548462744472117,-9.213532732592409,-8.705785507275811,-8.084761474417236,-5.973104873913286,-3.141167321992989,-1.5631277831907344,-0.6988851753546871,-0.3319754665662859,-2.725445766985622,-3.993170548199023,-4.595547220017372,-4.714489008804988,-2.6405504164917786,0.019308381824988174,1.5575532736928859,2.90489137618946,3.8370136558887458,4.4663924345832635,4.9170891575694515,5.238452252040165,5.4478943948483405,5.58954858859809,5.726092293226381,5.9607119370031345,6.178134399683019,6.196428191140457,5.356221242887502,3.6216346121937226],\"marker\":{},\"line\":{\"color\":\"green\",\"width\":2.0}}];\r\n",
|
|
" var layout = {\"width\":1200,\"height\":400,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}},\"margin\":{\"l\":30,\"r\":10,\"t\":40,\"b\":30,\"pad\":1,\"autoexpand\":false},\"xaxis\":{\"rangeslider\":{\"visible\":false,\"yaxis\":{}}},\"title\":{\"text\":\"MACD line and signal line of fastMA-slowMA\"}};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('18dec751-7e2f-4979-be4a-6ac3fc553df2', data, layout, config);\r\n",
|
|
" });\r\n",
|
|
"};\r\n",
|
|
"if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\r\n",
|
|
" var script = document.createElement(\"script\");\r\n",
|
|
" script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\r\n",
|
|
" script.onload = function(){\r\n",
|
|
" renderPlotly_18dec7517e2f4979be4a6ac3fc553df2();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_18dec7517e2f4979be4a6ac3fc553df2();\r\n",
|
|
"}\r\n",
|
|
"</script></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"SUB_Series MACD_line = new(fastMA, slowMA); //MACD line is just a SUBtraction fastMA-slowMA\n",
|
|
"JMA_Series signal_line = new(MACD_line, 9); //signal line is an EMA(9) of MACD; we use superior JMA(9) instead\n",
|
|
"\n",
|
|
"//make a chart\n",
|
|
"var cfast = Chart2D.Chart.Line<DateTime,double,bool>(MACD_line.t.Skip(warmup).ToList(), MACD_line.v.Skip(warmup).ToList(), false, \"MACD\").WithLineStyle(Width: 2, Color: Color.fromString(\"orange\"));\n",
|
|
"var cslow = Chart2D.Chart.Line<DateTime,double,bool>(signal_line.t.Skip(warmup).ToList(), signal_line.v.Skip(warmup).ToList(), false, \"signal\").WithLineStyle(Width: 2, Color: Color.fromString(\"green\"));\n",
|
|
"var chart = Chart.Combine(new []{cfast,cslow}).WithSize(1200,400).WithMargin(Margin.init<int, int, int, int, int, bool>(30,10,40,30,1,false))\n",
|
|
" .WithXAxisRangeSlider(RangeSlider.init(Visible:false)).WithTitle($\"MACD line and signal line of fastMA-slowMA\");\n",
|
|
"chart"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 50,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"43537bfa-dd33-422b-acac-cb6ccdd8f5ce\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_43537bfadd33422bacaccb6ccdd8f5ce = function() {\r\n",
|
|
" var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\r\n",
|
|
" fsharpPlotlyRequire(['plotly'], function(Plotly) {\r\n",
|
|
" var data = [{\"type\":\"bar\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[1.0323907552305176,-0.30873446059434073,-2.511209740974688,-2.1055419187457156,-1.404446397997201,-1.3015731194093134,0.7347300044866145,1.1462680252786785,-1.502121554045523,-1.5292867544264253,-0.16972655475519316,1.2345708038976095,1.4984759046343683,0.7480927723683419,-0.1768260507239372,-2.0217123142919275,-1.5668042414332497,2.288028391177695,2.093089556431269,1.4812708113039634,1.064484297974344,0.7194633648515794,0.23912515414372493,-2.730758654587364,-2.5762852600684707,0.6784080212130155,2.7557142537612505,3.726248467086756,3.64689415300061,3.649679047509202,2.5438917353531343,1.3981538261578361,-1.2107820954772155,-2.7200915204213914,-3.6904733332515978,-4.2556275270363795,-4.231549989034987,-3.759687063676166,-2.8889218495110685,-1.0964360617387197,-0.26120862999728267,-0.6264358473941076,-1.3255619806078505,-1.9152642734921148,-2.4530688511751038,-2.9116479001505446,-2.6921664169090196,-2.363075423698548,-2.350558299261402,-1.9801384788460652,-1.4433375431286368,-0.9127521629696673,-0.4227460773225413,0.29803704167766565,1.1720729158018548,1.7847217679686356,-0.6830363098573402,-0.7056550779699391,-1.745831351582523,-0.15085226895543435,2.359640436605652,1.9110197992193987,1.969978034698613,2.321858794545908,2.7648268790928006,0.343825665527282,-1.4784581988379566,-3.2776825351955887,-1.6111570029340188,0.6873284262945676,1.9819578797801762,3.209096432461452,3.36690439133846,2.2567613179940587,-0.5906532621252434,-2.7815233499364,-3.7035953890933326,-3.5936335745300623,-2.9474165887973376,-1.9788716935116115,0.42884319394908643,2.9981379477347128,1.6992158168937834,0.5419687591592766,-0.8149479820713452,-2.1608802565695573,-3.2882182322474485,-3.645944768611754,-3.4537986654605675,-2.276443417597891,-3.5093425933240407,-3.218116920835051,-0.1864159253319677,2.48721087348269,4.372443133930478,3.2900591538362534,2.1410861329053272,1.839205039179769,1.9831321045870953,3.1717624595904255,1.420732608772859,0.17992281770880325,-1.3470517371389583,-3.0281147969952418,-4.282052329459768,-4.533882725181581,-4.149702191849432,-3.555681640728783,-2.761987846300432,-2.0500981463990593,-1.650529352934491,-1.6071688860725888,-1.81238566101793,-1.8143670983963336,-1.6594247768126174,-0.2748405271623674,1.3843488676684748,2.7079606125686766,3.1944600635676004,3.0525699166327596,2.324332276896144,1.815379809266429,2.1877855471577554,2.5419551425134577,1.9237353324226634,0.7633004149840241,-0.322230604343023,-1.1292331960562452,-1.6710996335451833,-2.0194124987141464,-2.2884926686571703,-2.143446951791403,-1.7165264745821123,-0.38805549132031647,0.2990941034433625,0.4776597419395263,0.3119603026786324,-0.044225362663787404,-0.691560588509256,-2.84137300061362,-2.0072457649204276,-1.4633575089864372,-1.1252467160444244,-2.1389304112916037,-1.9457105546557045,-0.5351455435813843,1.1489138699028185,2.4092672604553957,3.08637106571763,3.2406987349989063,3.2800052978992547,3.461478049711518,3.2454634682485572,2.0630871617467923,-2.494381409812267,-4.464488307065698,-5.1687024214695345,-5.337211995288898,-4.811095335962548,-3.9854128675935065,-3.844976943136363,-3.187234885639591,-2.6398773101394077,-1.1172912350683104,0.23957446256594217,1.745461169992975,2.6058326301915216,1.857105792724679,2.0702781736853693,2.7268440647484553,1.2036779107254594,0.46661878770021836,-2.5049462911167613,-2.686887035352123,-1.6700256724277431,-1.350753246640858,-0.6014409105710019,-0.08104010139133644,0.8530678550243218,2.6412041873135568,2.9325722593988113,2.5739661136835736,2.426611120285809,2.450123316072996,1.7471667815871221,1.0426514875433774,0.03676914733403791,-0.8745615447655641,-1.593187977521204,-2.1911396197671866,-3.2966275517491717,-2.64445066710996,-1.487906509660776,-1.0577511851983252,-0.47486580187607164,-0.00450389688818742,3.142058218000071,2.956432426540063,1.7162695978152325,0.4788270256198004,-0.8363406345188178,-2.112683119704151,-3.111841416712023,-3.74684574375633,-3.8361843038772845,-3.403814955420626,-2.642071570740254,-2.0220186062283982,-1.6817801961914096,-0.05037369068598019,1.069809166113017,1.6598389654978938,1.546855735077829,-0.49532634313940616,-2.0920668739913846,-2.6824381628374723,-2.7505211847774103,-2.5003858063663564,-1.8115597937230352,-0.9483804968867178,-1.185453192120482,-2.714868291204267,-2.105545891438144,-1.112668966195721,0.21756357697482542,1.4042340385633976,2.3378104988900823,2.911252163250004,2.9631686832214426,2.871737814565593,2.727776249838101,2.4960295862515096,2.3048115251929997,1.993010780177177,2.241236291601318,2.4271018445788077,2.609685263810939,2.86258169105648,2.2993846323085108,1.6387949354075033,1.0849692490801432,0.29633884377710284,-1.0191781659278023,-1.956080334046285,-1.686269677429773,-1.4101253992501785,-1.1422401280998198,-0.8221098633906383,-0.5927966495067647,-0.5284276467437152,-0.4405028728268503,0.11700910499736494,1.443907541755503,1.0704157039479956,-0.22760525776524432,-1.5430570108097843,-2.1684286956156216,-1.8737455494940738,-1.4048955390977307,-1.2526992090192821,-1.1799619695130792,-0.9559758735154409,-0.7797488880221515,-0.7135669027974121,-1.312727586826104,-0.5595529171881406,0.37472430096640963,1.2445191558924424,1.9253368914431501,2.3464161031112205,2.476893223843808,2.510349280135701,2.311379251161128,1.2153070392925907,0.8213644387990346,0.6973317481617843,-1.2384732432156564,-2.0421633321847072,-1.132381718941085,0.3168868589874796,1.5961080929023828,2.005366788959891,1.1550602142749078,0.9595200445056979,1.2682861943668735,1.220800502747374,0.9444623343068264,0.5854097345550979,0.2463038459888729,-0.07835054816923304,0.004022746003871092,0.353497187581743,1.2660339243661607,0.17590687323337129,-1.1841682998154983,-1.9067687486261793,-1.6976000331843215],\"orientation\":\"v\",\"marker\":{\"pattern\":{}}}];\r\n",
|
|
" var layout = {\"width\":1200,\"height\":400,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}},\"margin\":{\"l\":30,\"r\":10,\"t\":40,\"b\":30,\"pad\":1,\"autoexpand\":false},\"xaxis\":{\"rangeslider\":{\"visible\":false,\"yaxis\":{}}},\"title\":{\"text\":\"MACD histogram of MACD-signal\"}};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('43537bfa-dd33-422b-acac-cb6ccdd8f5ce', data, layout, config);\r\n",
|
|
" });\r\n",
|
|
"};\r\n",
|
|
"if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\r\n",
|
|
" var script = document.createElement(\"script\");\r\n",
|
|
" script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\r\n",
|
|
" script.onload = function(){\r\n",
|
|
" renderPlotly_43537bfadd33422bacaccb6ccdd8f5ce();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_43537bfadd33422bacaccb6ccdd8f5ce();\r\n",
|
|
"}\r\n",
|
|
"</script></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"SUB_Series histogram = new(MACD_line, signal_line); //MACD histogram is an oscillator of MACD-signal\n",
|
|
"\n",
|
|
"//make a chart\n",
|
|
"var cfast = Chart2D.Chart.Column<double, DateTime, bool,bool,bool>(values: histogram.v.Skip(warmup).ToList(), Keys: histogram.t.Skip(warmup).ToList())\n",
|
|
".WithSize(1200,400).WithMargin(Margin.init<int, int, int, int, int, bool>(30,10,40,30,1,false)).WithXAxisRangeSlider(RangeSlider.init(Visible:false))\n",
|
|
".WithTitle(\"MACD histogram of MACD-signal\");\n",
|
|
"cfast"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 51,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"7b3fa6cd-1591-4d06-9d28-bc9918d0a545\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_7b3fa6cd15914d069d28bc9918d0a545 = function() {\r\n",
|
|
" var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\r\n",
|
|
" fsharpPlotlyRequire(['plotly'], function(Plotly) {\r\n",
|
|
" var data = [{\"type\":\"scatter\",\"name\":\"state\",\"mode\":\"lines\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-1.0,1.0,1.0,1.0,1.0,-1.0,-1.0,-1.0],\"marker\":{},\"line\":{\"color\":\"blue\",\"width\":1.0}},{\"type\":\"scatter\",\"mode\":\"lines\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[0.0,-1.0,0.0,0.0,0.0,0.0,1.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,-1.0,1.0,0.0,0.0,0.0,-1.0,0.0,0.0],\"marker\":{},\"line\":{},\"fill\":\"tozeroy\",\"fillpattern\":{}}];\r\n",
|
|
" var layout = {\"width\":1200,\"height\":400,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}},\"margin\":{\"l\":30,\"r\":10,\"t\":40,\"b\":30,\"pad\":1,\"autoexpand\":false},\"xaxis\":{\"rangeslider\":{\"visible\":false,\"yaxis\":{}}},\"title\":{\"text\":\"in-market signal and trading orders based on MACD histogram\"}};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('7b3fa6cd-1591-4d06-9d28-bc9918d0a545', data, layout, config);\r\n",
|
|
" });\r\n",
|
|
"};\r\n",
|
|
"if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\r\n",
|
|
" var script = document.createElement(\"script\");\r\n",
|
|
" script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\r\n",
|
|
" script.onload = function(){\r\n",
|
|
" renderPlotly_7b3fa6cd15914d069d28bc9918d0a545();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_7b3fa6cd15914d069d28bc9918d0a545();\r\n",
|
|
"}\r\n",
|
|
"</script></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"COMPARE_Series over = new(histogram,0); //generate over/under series when histogram is above/below zero\n",
|
|
"CROSS_Series trades = new(histogram,0); //generate a signal series where histogram crosses zero (from below and from above)\n",
|
|
"\n",
|
|
"//make a chart\n",
|
|
"var cover = Chart2D.Chart.Line<DateTime,double,bool>(over.t.Skip(warmup).ToList(),over.v.Skip(warmup).ToList(),false,\"state\").WithLineStyle(Width: 1, Color: Color.fromString(\"blue\"));\n",
|
|
"var cbars = Chart2D.Chart.Area<DateTime, double,bool>(trades.t.Skip(warmup).ToList(), trades.v.Skip(warmup).ToList(),false );\n",
|
|
"var chart = Chart.Combine(new []{cover,cbars}).WithSize(1200,400).WithMargin(Margin.init<int, int, int, int, int, bool>(30,10,40,30,1,false))\n",
|
|
" .WithXAxisRangeSlider(RangeSlider.init(Visible:false)).WithTitle(\"in-market signal and trading orders based on MACD histogram\");\n",
|
|
"chart"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 52,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"2eb1687f-6e83-44a4-ab2e-aaa8de02052f\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_2eb1687f6e8344a4ab2eaaa8de02052f = function() {\r\n",
|
|
" var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.18.1.min'}}) || require;\r\n",
|
|
" fsharpPlotlyRequire(['plotly'], function(Plotly) {\r\n",
|
|
" var data = [{\"type\":\"scatter\",\"mode\":\"lines\",\"x\":[\"2022-02-01T14:30:00\",\"2022-02-02T14:30:00\",\"2022-02-03T14:30:00\",\"2022-02-04T14:30:00\",\"2022-02-07T14:30:00\",\"2022-02-08T14:30:00\",\"2022-02-09T14:30:00\",\"2022-02-10T14:30:00\",\"2022-02-11T14:30:00\",\"2022-02-14T14:30:00\",\"2022-02-15T14:30:00\",\"2022-02-16T14:30:00\",\"2022-02-17T14:30:00\",\"2022-02-18T14:30:00\",\"2022-02-22T14:30:00\",\"2022-02-23T14:30:00\",\"2022-02-24T14:30:00\",\"2022-02-25T14:30:00\",\"2022-02-28T14:30:00\",\"2022-03-01T14:30:00\",\"2022-03-02T14:30:00\",\"2022-03-03T14:30:00\",\"2022-03-04T14:30:00\",\"2022-03-07T14:30:00\",\"2022-03-08T14:30:00\",\"2022-03-09T14:30:00\",\"2022-03-10T14:30:00\",\"2022-03-11T14:30:00\",\"2022-03-14T13:30:00\",\"2022-03-15T13:30:00\",\"2022-03-16T13:30:00\",\"2022-03-17T13:30:00\",\"2022-03-18T13:30:00\",\"2022-03-21T13:30:00\",\"2022-03-22T13:30:00\",\"2022-03-23T13:30:00\",\"2022-03-24T13:30:00\",\"2022-03-25T13:30:00\",\"2022-03-28T13:30:00\",\"2022-03-29T13:30:00\",\"2022-03-30T13:30:00\",\"2022-03-31T13:30:00\",\"2022-04-01T13:30:00\",\"2022-04-04T13:30:00\",\"2022-04-05T13:30:00\",\"2022-04-06T13:30:00\",\"2022-04-07T13:30:00\",\"2022-04-08T13:30:00\",\"2022-04-11T13:30:00\",\"2022-04-12T13:30:00\",\"2022-04-13T13:30:00\",\"2022-04-14T13:30:00\",\"2022-04-18T13:30:00\",\"2022-04-19T13:30:00\",\"2022-04-20T13:30:00\",\"2022-04-21T13:30:00\",\"2022-04-22T13:30:00\",\"2022-04-25T13:30:00\",\"2022-04-26T13:30:00\",\"2022-04-27T13:30:00\",\"2022-04-28T13:30:00\",\"2022-04-29T13:30:00\",\"2022-05-02T13:30:00\",\"2022-05-03T13:30:00\",\"2022-05-04T13:30:00\",\"2022-05-05T13:30:00\",\"2022-05-06T13:30:00\",\"2022-05-09T13:30:00\",\"2022-05-10T13:30:00\",\"2022-05-11T13:30:00\",\"2022-05-12T13:30:00\",\"2022-05-13T13:30:00\",\"2022-05-16T13:30:00\",\"2022-05-17T13:30:00\",\"2022-05-18T13:30:00\",\"2022-05-19T13:30:00\",\"2022-05-20T13:30:00\",\"2022-05-23T13:30:00\",\"2022-05-24T13:30:00\",\"2022-05-25T13:30:00\",\"2022-05-26T13:30:00\",\"2022-05-27T13:30:00\",\"2022-05-31T13:30:00\",\"2022-06-01T13:30:00\",\"2022-06-02T13:30:00\",\"2022-06-03T13:30:00\",\"2022-06-06T13:30:00\",\"2022-06-07T13:30:00\",\"2022-06-08T13:30:00\",\"2022-06-09T13:30:00\",\"2022-06-10T13:30:00\",\"2022-06-13T13:30:00\",\"2022-06-14T13:30:00\",\"2022-06-15T13:30:00\",\"2022-06-16T13:30:00\",\"2022-06-17T13:30:00\",\"2022-06-21T13:30:00\",\"2022-06-22T13:30:00\",\"2022-06-23T13:30:00\",\"2022-06-24T13:30:00\",\"2022-06-27T13:30:00\",\"2022-06-28T13:30:00\",\"2022-06-29T13:30:00\",\"2022-06-30T13:30:00\",\"2022-07-01T13:30:00\",\"2022-07-05T13:30:00\",\"2022-07-06T13:30:00\",\"2022-07-07T13:30:00\",\"2022-07-08T13:30:00\",\"2022-07-11T13:30:00\",\"2022-07-12T13:30:00\",\"2022-07-13T13:30:00\",\"2022-07-14T13:30:00\",\"2022-07-15T13:30:00\",\"2022-07-18T13:30:00\",\"2022-07-19T13:30:00\",\"2022-07-20T13:30:00\",\"2022-07-21T13:30:00\",\"2022-07-22T13:30:00\",\"2022-07-25T13:30:00\",\"2022-07-26T13:30:00\",\"2022-07-27T13:30:00\",\"2022-07-28T13:30:00\",\"2022-07-29T13:30:00\",\"2022-08-01T13:30:00\",\"2022-08-02T13:30:00\",\"2022-08-03T13:30:00\",\"2022-08-04T13:30:00\",\"2022-08-05T13:30:00\",\"2022-08-08T13:30:00\",\"2022-08-09T13:30:00\",\"2022-08-10T13:30:00\",\"2022-08-11T13:30:00\",\"2022-08-12T13:30:00\",\"2022-08-15T13:30:00\",\"2022-08-16T13:30:00\",\"2022-08-17T13:30:00\",\"2022-08-18T13:30:00\",\"2022-08-19T13:30:00\",\"2022-08-22T13:30:00\",\"2022-08-23T13:30:00\",\"2022-08-24T13:30:00\",\"2022-08-25T13:30:00\",\"2022-08-26T13:30:00\",\"2022-08-29T13:30:00\",\"2022-08-30T13:30:00\",\"2022-08-31T13:30:00\",\"2022-09-01T13:30:00\",\"2022-09-02T13:30:00\",\"2022-09-06T13:30:00\",\"2022-09-07T13:30:00\",\"2022-09-08T13:30:00\",\"2022-09-09T13:30:00\",\"2022-09-12T13:30:00\",\"2022-09-13T13:30:00\",\"2022-09-14T13:30:00\",\"2022-09-15T13:30:00\",\"2022-09-16T13:30:00\",\"2022-09-19T13:30:00\",\"2022-09-20T13:30:00\",\"2022-09-21T13:30:00\",\"2022-09-22T13:30:00\",\"2022-09-23T13:30:00\",\"2022-09-26T13:30:00\",\"2022-09-27T13:30:00\",\"2022-09-28T13:30:00\",\"2022-09-29T13:30:00\",\"2022-09-30T13:30:00\",\"2022-10-03T13:30:00\",\"2022-10-04T13:30:00\",\"2022-10-05T13:30:00\",\"2022-10-06T13:30:00\",\"2022-10-07T13:30:00\",\"2022-10-10T13:30:00\",\"2022-10-11T13:30:00\",\"2022-10-12T13:30:00\",\"2022-10-13T13:30:00\",\"2022-10-14T13:30:00\",\"2022-10-17T13:30:00\",\"2022-10-18T13:30:00\",\"2022-10-19T13:30:00\",\"2022-10-20T13:30:00\",\"2022-10-21T13:30:00\",\"2022-10-24T13:30:00\",\"2022-10-25T13:30:00\",\"2022-10-26T13:30:00\",\"2022-10-27T13:30:00\",\"2022-10-28T13:30:00\",\"2022-10-31T13:30:00\",\"2022-11-01T13:30:00\",\"2022-11-02T13:30:00\",\"2022-11-03T13:30:00\",\"2022-11-04T13:30:00\",\"2022-11-07T14:30:00\",\"2022-11-08T14:30:00\",\"2022-11-09T14:30:00\",\"2022-11-10T14:30:00\",\"2022-11-11T14:30:00\",\"2022-11-14T14:30:00\",\"2022-11-15T14:30:00\",\"2022-11-16T14:30:00\",\"2022-11-17T14:30:00\",\"2022-11-18T14:30:00\",\"2022-11-21T14:30:00\",\"2022-11-22T14:30:00\",\"2022-11-23T14:30:00\",\"2022-11-25T14:30:00\",\"2022-11-28T14:30:00\",\"2022-11-29T14:30:00\",\"2022-11-30T14:30:00\",\"2022-12-01T14:30:00\",\"2022-12-02T14:30:00\",\"2022-12-05T14:30:00\",\"2022-12-06T14:30:00\",\"2022-12-07T14:30:00\",\"2022-12-08T14:30:00\",\"2022-12-09T14:30:00\",\"2022-12-12T14:30:00\",\"2022-12-13T14:30:00\",\"2022-12-14T14:30:00\",\"2022-12-15T14:30:00\",\"2022-12-16T14:30:00\",\"2022-12-19T14:30:00\",\"2022-12-20T14:30:00\",\"2022-12-21T14:30:00\",\"2022-12-22T14:30:00\",\"2022-12-23T14:30:00\",\"2022-12-27T14:30:00\",\"2022-12-28T14:30:00\",\"2022-12-29T14:30:00\",\"2022-12-30T14:30:00\",\"2023-01-03T14:30:00\",\"2023-01-04T14:30:00\",\"2023-01-05T14:30:00\",\"2023-01-06T14:30:00\",\"2023-01-09T14:30:00\",\"2023-01-10T14:30:00\",\"2023-01-11T14:30:00\",\"2023-01-12T14:30:00\",\"2023-01-13T14:30:00\",\"2023-01-17T14:30:00\",\"2023-01-18T14:30:00\",\"2023-01-19T14:30:00\",\"2023-01-20T14:30:00\",\"2023-01-23T14:30:00\",\"2023-01-24T14:30:00\",\"2023-01-25T14:30:00\",\"2023-01-26T14:30:00\",\"2023-01-27T14:30:00\",\"2023-01-30T14:30:00\",\"2023-01-31T14:30:00\",\"2023-02-01T14:30:00\",\"2023-02-02T14:30:00\",\"2023-02-03T14:30:00\",\"2023-02-06T14:30:00\",\"2023-02-07T14:30:00\",\"2023-02-08T14:30:00\",\"2023-02-09T14:30:00\",\"2023-02-10T14:30:00\",\"2023-02-13T14:30:00\",\"2023-02-14T14:30:00\",\"2023-02-15T14:30:00\",\"2023-02-16T14:30:00\",\"2023-02-17T14:30:00\",\"2023-02-21T14:30:00\",\"2023-02-22T14:30:00\",\"2023-02-23T14:30:00\",\"2023-02-24T14:30:00\",\"2023-02-27T14:30:00\",\"2023-02-28T14:30:00\",\"2023-03-01T14:30:00\",\"2023-03-02T14:30:00\",\"2023-03-03T14:30:00\",\"2023-03-06T14:30:00\",\"2023-03-07T14:30:00\",\"2023-03-08T14:30:00\",\"2023-03-09T14:30:00\",\"2023-03-10T14:30:00\",\"2023-03-13T13:30:00\",\"2023-03-14T13:30:00\",\"2023-03-15T13:30:00\",\"2023-03-16T13:30:00\",\"2023-03-17T13:30:00\",\"2023-03-20T13:30:00\",\"2023-03-21T13:30:00\",\"2023-03-22T13:30:00\",\"2023-03-23T13:30:00\",\"2023-03-24T13:30:00\",\"2023-03-27T13:30:00\",\"2023-03-28T13:30:00\",\"2023-03-29T13:30:00\",\"2023-03-30T13:30:00\",\"2023-03-31T13:30:00\",\"2023-04-03T13:30:00\",\"2023-04-04T13:30:00\",\"2023-04-05T13:30:00\",\"2023-04-06T13:30:00\"],\"y\":[0.0,0.0,0.0,0.0,0.0,0.0,6.600000000000023,-1.6200000000000045,-1.6200000000000045,-1.6200000000000045,-1.6200000000000045,-1.1200000000000045,-10.660000000000025,-13.490000000000009,-13.490000000000009,-13.490000000000009,-13.490000000000009,-4.0400000000000205,-5.160000000000025,-11.810000000000002,-3.900000000000034,-6.080000000000041,-9.620000000000005,-9.620000000000005,-9.620000000000005,1.5400000000000205,-0.38999999999998636,-5.800000000000011,-8.870000000000005,0.30000000000001137,9.75,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,15.199999999999989,22.269999999999982,21.93999999999994,15.289999999999964,15.289999999999964,15.289999999999964,15.289999999999964,15.289999999999964,25.829999999999984,10.019999999999982,12.5,14.399999999999977,27.079999999999984,11.829999999999984,11.829999999999984,11.829999999999984,11.829999999999984,5.490000000000009,5.079999999999984,14.460000000000036,12.829999999999984,21.060000000000002,21.060000000000002,21.060000000000002,21.060000000000002,21.060000000000002,21.060000000000002,21.060000000000002,29.0,38.94999999999999,36.620000000000005,33.27999999999997,33.27999999999997,33.27999999999997,33.27999999999997,33.27999999999997,33.27999999999997,33.27999999999997,33.27999999999997,33.27999999999997,33.27999999999997,38.60999999999996,26.059999999999945,25.269999999999982,34.47999999999996,33.799999999999955,37.46999999999997,49.48999999999995,47.99999999999994,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,40.059999999999945,42.559999999999945,46.579999999999984,42.87999999999994,43.35999999999996,38.67999999999995,48.829999999999984,53.85999999999996,59.77999999999997,58.559999999999945,55.849999999999966,55.849999999999966,55.849999999999966,55.849999999999966,55.849999999999966,55.849999999999966,55.849999999999966,55.849999999999966,55.849999999999966,57.60999999999996,58.44999999999993,55.39999999999992,55.39999999999992,55.39999999999992,55.39999999999992,55.39999999999992,55.39999999999992,55.39999999999992,55.39999999999992,55.39999999999992,55.39999999999992,52.36999999999995,53.60999999999996,49.42999999999995,47.94999999999993,54.969999999999914,57.569999999999936,63.789999999999964,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,68.15999999999997,67.22999999999996,74.37999999999994,66.63999999999999,61.02999999999997,70.45999999999998,81.82,80.93999999999994,77.04999999999995,77.04999999999995,77.04999999999995,77.04999999999995,77.04999999999995,77.04999999999995,77.04999999999995,86.23999999999995,90.54999999999995,87.91999999999996,84.82999999999998,93.70999999999998,98.28999999999996,104.33999999999997,101.43999999999994,99.39999999999998,99.39999999999998,99.39999999999998,99.39999999999998,99.39999999999998,99.39999999999998,99.39999999999998,99.39999999999998,99.39999999999998,99.39999999999998,119.95999999999998,123.77999999999997,120.38999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.75999999999999,123.45999999999998,122.99000000000001,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,115.66999999999996,121.35999999999996,115.84999999999997,118.03999999999996,116.52999999999992,111.78999999999996,118.56999999999994,117.55999999999995,115.94999999999993,118.88999999999993,114.50999999999993,123.20999999999992,122.98999999999995,125.70999999999992,130.64999999999992,132.08999999999992,133.62999999999994,132.89999999999992,126.61999999999995,126.61999999999995,126.61999999999995,126.61999999999995,126.61999999999995,126.61999999999995,126.61999999999995,126.61999999999995,126.61999999999995,126.61999999999995,130.93999999999994,136.9199999999999,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,132.48999999999995,134.60999999999996,130.32999999999993,131.67999999999995,130.20999999999992,128.68999999999994,131.75999999999993,138.13999999999993,138.41999999999996,132.2199999999999,132.86999999999995,132.86999999999995,132.86999999999995,132.86999999999995,139.23999999999995,136.7899999999999,143.61999999999995,137.49999999999994,141.24999999999994,146.41999999999996,139.61999999999995,140.67999999999995,143.25999999999993,143.99999999999994,143.99999999999994,149.74999999999994,152.0999999999999,157.7899999999999,159.3499999999999,159.3499999999999,159.3499999999999,159.3499999999999],\"marker\":{},\"line\":{},\"fill\":\"tozeroy\",\"fillpattern\":{}}];\r\n",
|
|
" var layout = {\"width\":1200,\"height\":400,\"template\":{\"layout\":{\"title\":{\"x\":0.05},\"font\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"paper_bgcolor\":\"rgba(255, 255, 255, 1.0)\",\"plot_bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"autotypenumbers\":\"strict\",\"colorscale\":{\"diverging\":[[0.0,\"#8e0152\"],[0.1,\"#c51b7d\"],[0.2,\"#de77ae\"],[0.3,\"#f1b6da\"],[0.4,\"#fde0ef\"],[0.5,\"#f7f7f7\"],[0.6,\"#e6f5d0\"],[0.7,\"#b8e186\"],[0.8,\"#7fbc41\"],[0.9,\"#4d9221\"],[1.0,\"#276419\"]],\"sequential\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]],\"sequentialminus\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]},\"hovermode\":\"closest\",\"hoverlabel\":{\"align\":\"left\"},\"coloraxis\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"geo\":{\"showland\":true,\"landcolor\":\"rgba(229, 236, 246, 1.0)\",\"showlakes\":true,\"lakecolor\":\"rgba(255, 255, 255, 1.0)\",\"subunitcolor\":\"rgba(255, 255, 255, 1.0)\",\"bgcolor\":\"rgba(255, 255, 255, 1.0)\"},\"mapbox\":{\"style\":\"light\"},\"polar\":{\"bgcolor\":\"rgba(229, 236, 246, 1.0)\",\"radialaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"},\"angularaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"ticks\":\"\"}},\"scene\":{\"xaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"yaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true},\"zaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"gridwidth\":2.0,\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"backgroundcolor\":\"rgba(229, 236, 246, 1.0)\",\"showbackground\":true}},\"ternary\":{\"aaxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"baxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"caxis\":{\"ticks\":\"\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\"},\"bgcolor\":\"rgba(229, 236, 246, 1.0)\"},\"xaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"yaxis\":{\"title\":{\"standoff\":15},\"ticks\":\"\",\"automargin\":\"height+width+left+right+top+bottom\",\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinecolor\":\"rgba(255, 255, 255, 1.0)\",\"zerolinewidth\":2.0},\"annotationdefaults\":{\"arrowcolor\":\"#2a3f5f\",\"arrowhead\":0,\"arrowwidth\":1},\"shapedefaults\":{\"line\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}},\"colorway\":[\"rgba(99, 110, 250, 1.0)\",\"rgba(239, 85, 59, 1.0)\",\"rgba(0, 204, 150, 1.0)\",\"rgba(171, 99, 250, 1.0)\",\"rgba(255, 161, 90, 1.0)\",\"rgba(25, 211, 243, 1.0)\",\"rgba(255, 102, 146, 1.0)\",\"rgba(182, 232, 128, 1.0)\",\"rgba(255, 151, 255, 1.0)\",\"rgba(254, 203, 82, 1.0)\"]},\"data\":{\"bar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}},\"error_x\":{\"color\":\"rgba(42, 63, 95, 1.0)\"},\"error_y\":{\"color\":\"rgba(42, 63, 95, 1.0)\"}}],\"barpolar\":[{\"marker\":{\"line\":{\"color\":\"rgba(229, 236, 246, 1.0)\",\"width\":0.5},\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"carpet\":[{\"aaxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"},\"baxis\":{\"linecolor\":\"rgba(255, 255, 255, 1.0)\",\"gridcolor\":\"rgba(255, 255, 255, 1.0)\",\"endlinecolor\":\"rgba(42, 63, 95, 1.0)\",\"minorgridcolor\":\"rgba(255, 255, 255, 1.0)\",\"startlinecolor\":\"rgba(42, 63, 95, 1.0)\"}}],\"choropleth\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"contourcarpet\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"heatmap\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"heatmapgl\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram\":[{\"marker\":{\"pattern\":{\"fillmode\":\"overlay\",\"size\":10,\"solidity\":0.2}}}],\"histogram2d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"histogram2dcontour\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"mesh3d\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}],\"parcoords\":[{\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"pie\":[{\"automargin\":true}],\"scatter\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatter3d\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}},\"line\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattercarpet\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergeo\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattergl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scattermapbox\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolar\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterpolargl\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"scatterternary\":[{\"marker\":{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"}}}],\"surface\":[{\"colorbar\":{\"outlinewidth\":0.0,\"ticks\":\"\"},\"colorscale\":[[0.0,\"#0d0887\"],[0.1111111111111111,\"#46039f\"],[0.2222222222222222,\"#7201a8\"],[0.3333333333333333,\"#9c179e\"],[0.4444444444444444,\"#bd3786\"],[0.5555555555555556,\"#d8576b\"],[0.6666666666666666,\"#ed7953\"],[0.7777777777777778,\"#fb9f3a\"],[0.8888888888888888,\"#fdca26\"],[1.0,\"#f0f921\"]]}],\"table\":[{\"cells\":{\"fill\":{\"color\":\"rgba(235, 240, 248, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}},\"header\":{\"fill\":{\"color\":\"rgba(200, 212, 227, 1.0)\"},\"line\":{\"color\":\"rgba(255, 255, 255, 1.0)\"}}}]}},\"margin\":{\"l\":30,\"r\":10,\"t\":40,\"b\":30,\"pad\":1,\"autoexpand\":false},\"xaxis\":{\"rangeslider\":{\"visible\":false,\"yaxis\":{}}},\"title\":{\"text\":\"Equity curve (long trades only) for MACD on SPY\"}};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('2eb1687f-6e83-44a4-ab2e-aaa8de02052f', data, layout, config);\r\n",
|
|
" });\r\n",
|
|
"};\r\n",
|
|
"if ((typeof(requirejs) !== typeof(Function)) || (typeof(requirejs.config) !== typeof(Function))) {\r\n",
|
|
" var script = document.createElement(\"script\");\r\n",
|
|
" script.setAttribute(\"src\", \"https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js\");\r\n",
|
|
" script.onload = function(){\r\n",
|
|
" renderPlotly_2eb1687f6e8344a4ab2eaaa8de02052f();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_2eb1687f6e8344a4ab2eaaa8de02052f();\r\n",
|
|
"}\r\n",
|
|
"</script></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"EQUITY_Series folio = new(trades, data, Long:true, Short:false, Warmup:warmup); //generate equity curve from trades and \n",
|
|
"\n",
|
|
"//make a chart\n",
|
|
"var cbars = Chart2D.Chart.Area<DateTime, double,bool>(folio.t.Skip(warmup).ToList(), folio.v.Skip(warmup).ToList(),false ).WithSize(1200,400).WithMargin(Margin.init<int, int, int, int, int, bool>(30,10,40,30,1,false))\n",
|
|
" .WithXAxisRangeSlider(RangeSlider.init(Visible:false)).WithTitle($\"Equity curve (long trades only) for MACD on {symbol}\");\n",
|
|
"cbars"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 53,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div class=\"dni-plaintext\"><pre>107.93999999999998</pre></div><style>\r\n",
|
|
".dni-code-hint {\r\n",
|
|
" font-style: italic;\r\n",
|
|
" overflow: hidden;\r\n",
|
|
" white-space: nowrap;\r\n",
|
|
"}\r\n",
|
|
".dni-treeview {\r\n",
|
|
" white-space: nowrap;\r\n",
|
|
"}\r\n",
|
|
".dni-treeview td {\r\n",
|
|
" vertical-align: top;\r\n",
|
|
" text-align: start;\r\n",
|
|
"}\r\n",
|
|
"details.dni-treeview {\r\n",
|
|
" padding-left: 1em;\r\n",
|
|
"}\r\n",
|
|
"table td {\r\n",
|
|
" text-align: start;\r\n",
|
|
"}\r\n",
|
|
"table tr { \r\n",
|
|
" vertical-align: top; \r\n",
|
|
" margin: 0em 0px;\r\n",
|
|
"}\r\n",
|
|
"table tr td pre \r\n",
|
|
"{ \r\n",
|
|
" vertical-align: top !important; \r\n",
|
|
" margin: 0em 0px !important;\r\n",
|
|
"} \r\n",
|
|
"table th {\r\n",
|
|
" text-align: start;\r\n",
|
|
"}\r\n",
|
|
"</style>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"// some what-if examples\n",
|
|
"string symbol=\"IBM\";\n",
|
|
"int warmup = 50;\n",
|
|
"Yahoo_Feed bars = new(symbol,350);\n",
|
|
"TSeries data = bars.Close;\n",
|
|
"HEMA_Series fastMA = new(data,12);\n",
|
|
"JMA_Series slowMA = new(data,23,-100);\n",
|
|
"SUB_Series MACD_line = new(fastMA, slowMA);\n",
|
|
"JMA_Series signal_line = new(MACD_line, 9);\n",
|
|
"SUB_Series histogram = new(MACD_line, signal_line);\n",
|
|
"CROSS_Series trades = new(histogram,0);\n",
|
|
"EQUITY_Series folio = new(trades, data, Long:true, Short:false, Warmup:warmup);\n",
|
|
"folio[^1].v"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": ".NET (C#)",
|
|
"language": "C#",
|
|
"name": ".net-csharp"
|
|
},
|
|
"language_info": {
|
|
"name": "polyglot-notebook"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelInfo": {
|
|
"defaultKernelName": "csharp",
|
|
"items": [
|
|
{
|
|
"aliases": [
|
|
"C#",
|
|
"c#"
|
|
],
|
|
"languageName": "C#",
|
|
"name": "csharp"
|
|
},
|
|
{
|
|
"aliases": [
|
|
"frontend"
|
|
],
|
|
"name": "vscode"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|