mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-28 01:37:43 +00:00
390 lines
177 KiB
Plaintext
390 lines
177 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 18,
|
|
"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.0</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": 19,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"d6ed8adf-ec28-4b73-8d34-423a356f40b7\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_d6ed8adfec284b738d34423a356f40b7 = 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-01-31T14:30:00\",\"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\":[449.91,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\":[441.24,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\":[450.28,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\":[439.81,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('d6ed8adf-ec28-4b73-8d34-423a356f40b7', 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_d6ed8adfec284b738d34423a356f40b7();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_d6ed8adfec284b738d34423a356f40b7();\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": 20,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"b34d57f3-6c88-49a8-8a00-ad8f5b0c3552\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_b34d57f36c8849a88a00ad8f5b0c3552 = 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-01-31T14:30:00\",\"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\":[442.3144504903645,448.0035883657883,452.62615085766777,451.2579983781408,450.36706684535625,449.7087260489441,449.3578215911708,451.52493109294045,452.13225038318905,447.0552363438297,443.3245101358438,442.00835219464244,441.611302034892,440.8313412808328,438.75336186479336,435.1883384441915,428.07056649047814,424.4353244146262,429.7509847051142,432.7405519662067,434.0070276262279,434.76121120151345,435.2453759128863,435.3812070573453,428.079768711749,421.127259428322,420.5543461121548,420.6036463326955,420.7544437631149,420.56658323370704,420.9497591914081,427.5395424339533,434.88156687136757,439.3036321438275,442.03442289551367,444.08576287873854,445.3695433762241,446.3837664684978,447.40545585690785,448.8957106496485,453.1239615829674,456.0038047521478,457.27016506130735,457.73791858707676,457.85958380271524,457.56394157156114,456.2939981639464,454.9715815539099,453.6437375373841,450.5515204942533,447.5067248817362,445.30639996800716,443.54722478985445,442.0821363593827,441.2069796739351,440.88053266592664,440.63575610579466,433.7173285002304,430.18326381804644,422.73441759330365,419.03912278796537,419.03711033046716,416.33312628002534,414.7456630827779,413.95470017829143,419.3815407636307,418.77003446028175,417.3824457474888,407.9497118675726,403.09340407025167,399.22085014524487,396.6077830783699,395.54536216391,395.2326985611177,397.47141385130607,396.5993740640241,394.86780599957234,393.5742296196598,392.9173683941568,392.6674825830972,392.8310478035275,395.11621524263035,405.94372936131685,411.7919771323892,414.86807944314444,416.4632967401339,417.06473554135016,417.0475032960219,416.8702331217154,416.48595185053017,413.00042578887854,401.3134993671695,387.0274284875314,378.9860979706638,374.57106716192476,371.47811530704075,369.33603436924847,368.45341753451623,368.32868682977704,368.8904464327549,378.7259753842861,384.064992185648,386.8246129075313,387.87786830888433,387.69038459256427,386.92653242115006,385.99921568343586,385.17330497168956,384.8152900997271,384.9061887248163,385.09458182095744,385.07058243195155,384.69799135130745,383.99794282926666,383.4493395755715,383.0217143984759,384.0967809110181,386.06543029128665,388.83938379166705,390.99155201819116,392.6339223959688,393.62860406350285,394.7853196522025,397.49907214754495,402.8185946262027,406.355580991413,408.57363852689406,410.16872889935394,411.4198506856505,412.4020412816891,413.1327420379471,413.56219329293515,414.2273095320404,415.07733530407,418.02258261246226,421.0526835751933,423.4758628320352,425.28801458294396,426.6227667538168,427.2960189504237,423.43853834747335,420.119118081282,417.83462236511974,416.5411205119115,412.2940650825915,408.2466705681589,404.66806513788487,401.79311175194294,399.75267267147046,398.09358985680706,396.58555227755465,395.53872442924796,395.1362241299257,397.54597750069365,402.254323538685,400.0131461848252,398.5262184254807,396.98099121962764,394.1845669604571,392.1527798245322,390.47574752211057,386.281734185951,381.54160503469984,374.97863448971503,369.93322593662367,366.70359201958655,364.96075731266467,363.9668145952136,361.9098253776211,361.2800101996435,368.2478838924448,372.0547961965796,374.22591709285877,371.0661086363389,367.04336259963105,364.1295000406685,361.97979286096125,361.08097602789496,360.409615290881,360.5524812822001,362.32762858300435,363.79916816525935,364.8570408030703,366.21041196038925,369.1646803445025,375.4533864899156,379.42086934333474,381.7423157102016,383.5877213290065,384.8999232064498,385.7431215393445,384.0401456182443,380.3160386307771,377.9398043595337,376.69598615274356,376.37540588033244,376.30300882989707,384.63154620066325,392.7228800648596,397.2214727593221,399.61702421854005,400.64350213223975,400.7651983981288,400.43165085815804,399.8310784914574,399.3698577975778,399.269342079548,399.4932975415436,399.6126353554008,399.4832997562852,400.98173579065235,402.3052152332514,403.4288257775756,404.0223663062771,402.4741531638561,400.7923566659571,399.40409100271705,398.1676792919837,397.3354158697854,397.06228718446584,397.1328483629269,396.00236711195487,390.7150034263617,386.426818486234,383.6742029292486,382.1891009945672,381.3554498584418,380.9677314025501,380.79520472718764,380.4915797760417,380.34119589116915,380.34985092633525,380.4013246876912,380.5956538878538,380.7031799159473,381.4809886872826,382.3514596062767,383.4152202694673,386.3870846671747,389.28002347827726,391.6271524063504,393.51439102349485,394.6787800872705,394.7783317896999,394.77115236910316,395.89593850433204,396.8441239588519,397.6818685072172,398.8279313410984,400.01790684313363,400.95787877574793,401.8714484775298,403.8821001120224,410.2752347088574,413.98252967767206,415.79358915503815,416.61920369099676,416.7204908091266,415.9557257355011,414.92749490657116,414.03621754592115,413.3891608357402,413.0433948153208,412.66646006786635,412.1308110495418,406.1471573112379,402.52144815021654,400.37091494441233,398.9947939185475,398.0989770084629,397.4480740979297,396.8670626479265,396.4682283270553,397.54777163502797,398.6793994644029,399.3962360395874,399.77064708981175,397.4012499148102,391.1912243986375,387.96201273303484,386.5956557389144,386.07578970794503,387.59374626294135,388.7477971045964,389.69936559214415,391.5878976286159,392.787053424326,393.50518075922207,394.00885029013466,394.44750735213904,394.81820327653855,395.72195197986395,397.4010064406962,403.19008168676555,407.00286955615934,409.2868140464759,410.49098818733285,411.05234935427285],\"marker\":{},\"line\":{\"color\":\"blue\",\"width\":2.0}},{\"type\":\"scatter\",\"name\":\"Slow MA\",\"mode\":\"lines\",\"x\":[\"2022-01-31T14:30:00\",\"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\":[436.2168167963151,439.90324228139343,444.47010104520973,447.08029884901583,449.0261565855687,450.42690640833695,451.414924433154,452.0485593115418,452.42306025085185,450.54650124943214,447.5414001383808,445.27315128832555,443.59958532319627,442.48160481625104,440.97106787554054,438.1312521275506,433.89848927833015,430.647426699001,430.0295942134774,430.0253798368811,430.0726959255948,430.23395480189635,430.45041548067513,430.68372203961,429.2183806805664,426.1297723502115,424.16089415159973,422.70980426302225,421.6414290749026,420.8777797733751,420.38030194055926,422.7266999356893,427.0360687919147,432.1195962441177,435.70378127079425,438.8526411292095,441.3160313257096,443.2041740868527,444.77200014150475,446.379684137546,449.5820157047083,452.1349578331619,454.1313971419012,455.6516861889637,456.80069019387497,457.6148930320894,457.96476278745354,458.0706993643639,457.9644149795245,456.64085817594326,454.6404420852317,452.8871670952653,451.3086448829765,449.86415757945224,448.58339002755764,447.474841972418,446.48394898832527,441.9645577661679,438.51561388614556,432.3847399936088,427.35890496079617,423.8423444188873,420.7389194484142,418.4218095086126,416.62719348442926,416.50962379256464,416.3951064652396,415.9946609270025,412.2855822818261,408.0352559302596,402.922096934342,399.2967912253612,396.54596455198055,394.5250212307964,393.7736200580204,393.76472945955487,393.5308619893992,393.26923796454736,393.0558059021089,392.887644693402,392.7880045907491,393.0827070097957,397.4137323951888,400.8786688367837,403.6284754149397,405.90426074776957,407.7387030164584,409.20861087137246,410.4085665282195,411.3704076209887,411.779804927333,408.2600586443256,400.87065661149006,392.52524253520204,386.57520113165594,380.3733392007882,375.442465258525,371.70284087916673,368.94732592449674,367.02441865536804,369.78712095924436,372.4996840078158,374.7264047323794,376.52840054300634,377.9403064330125,379.0369394723131,379.88549292398534,380.54917293103506,381.11948873148,381.64896317123305,382.1318841521709,382.53905209666476,382.8421893993755,383.02514735062675,383.1444094931363,383.2110954017347,383.4017964317074,383.91464658503514,385.1968212590717,386.3675184211417,387.4484342278115,388.4152238767353,389.3669309135349,391.0029655654816,395.2226437684948,398.64936483035086,401.4355713251114,403.7500453964284,405.69833342819356,407.3518181612198,408.7594975779264,409.94625861614935,411.0465513553062,412.0612458843192,414.132768790319,416.73769323153033,419.08165486840045,421.06918486364395,422.75823852535603,424.14909016709385,424.77881614891874,424.71798918177893,424.5264001097299,424.2582502184656,422.47022348489077,419.422855519537,415.21493099831565,411.0272197445839,407.68796040811895,404.9580094283422,402.64603062163985,400.74387226055944,399.2229943170982,398.38992991929206,398.953752360598,398.88175025079056,398.71334617430523,398.2254222961045,396.74154842467436,395.46635154425576,394.23197305947076,391.12766819454345,386.8771307096166,380.8037846685131,375.0480454765758,370.9641704137717,367.83841347459474,365.4530038353493,363.5938983242896,362.1670110332194,363.5632603729569,365.24098097764494,366.6104828084393,367.3624018167574,367.2377013270863,366.54035125118025,365.7026594052508,364.95174419978196,364.2508407856271,363.6522744230247,363.2810101881064,363.05695402365416,362.94554282850174,363.06933930199926,364.0381102134302,367.7241741373794,370.6890008854361,373.09936273000096,375.43777698267104,377.40342851800654,379.05591319936957,380.2903635492992,380.76028667832026,381.04330395259433,381.201683444489,381.2950360213836,381.29923390699906,383.2688842423582,387.0512704207997,389.8805726153422,392.0362467448835,393.7224569151362,395.01933839494734,396.00942518257943,396.74625971730524,397.317125960772,397.79984619698104,398.24043203302864,398.6140116347255,398.90380219061257,399.2917845456946,399.7144627038999,400.18562494538367,400.6475749886063,400.99043599756664,401.1571587783044,401.2144113502072,401.1532872417858,401.02326036601823,400.8817962656974,400.7422216898074,400.402716945005,398.1873436252916,394.584504273585,391.7321011937673,389.454972406759,387.6206548624025,386.14718634203473,384.95649597811644,383.952310540189,383.1254201442522,382.4537566938552,381.9042531027118,381.4753242089401,381.12496388572123,380.894034422771,380.79537210907176,380.84962982832315,381.8803343200594,383.51330486660197,385.28754219498643,386.8630553321461,388.22728109874936,389.3561192631771,390.3114125226041,391.38934519102156,392.3744206454047,393.2753951255086,394.40284185667434,395.6157915492176,396.7023415414938,397.7060510221288,399.2634598097594,404.24414801534175,408.1179507967272,411.07789497638464,413.33065721082943,414.9999502112341,416.16422710410893,416.9087035736105,417.34792523320976,417.5660380268079,417.63651899510756,417.5665771065443,417.3635674537664,414.68497566269116,411.75234270179885,409.3829479764002,407.3849869696983,405.7220682073487,404.31515633419366,403.09592146762014,402.04260848697487,401.2094673192986,400.60523257600556,400.137975096006,399.77217900336535,398.9716802889966,395.95882079265857,393.0875545570689,390.8743073037478,389.1941633059467,388.22892448589647,387.57342480457993,387.1822900198904,387.4147200902576,387.72924118068926,388.09432930035433,388.5063556892749,388.96275618474687,389.44866472418556,390.1283865638679,391.321424296004,395.9633411736059,400.64883424707523,404.27456045235374,407.0415420930564,409.1283210949243],\"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('b34d57f3-6c88-49a8-8a00-ad8f5b0c3552', 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_b34d57f36c8849a88a00ad8f5b0c3552();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_b34d57f36c8849a88a00ad8f5b0c3552();\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": 21,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"0151fe48-bd08-4507-afc2-4ede6bcf60b4\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_0151fe48bd084507afc24ede6bcf60b4 = 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-01-31T14:30:00\",\"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\":[6.097633694049421,8.100346084394857,8.156049812458036,4.177699529124993,1.340910259787563,-0.7181803593928748,-2.0571028419831805,-0.5236282186013455,-0.2908098676628015,-3.4912649056024634,-4.2168900025370135,-3.2647990936831093,-1.9882832883042738,-1.650263535418219,-2.217706010747179,-2.9429136833591087,-5.827922787852003,-6.212102284374794,-0.27860950836321763,2.7151721293255946,3.934331700633095,4.527256399617102,4.794960432211155,4.697485017735289,-1.1386119688173721,-5.00251292188949,-3.606548039444931,-2.106157930326731,-0.8869853117876687,-0.31119653966806027,0.5694572508488136,4.81284249826399,7.845498079452852,7.184035899709784,6.330641624719419,5.233121749529062,4.053512050514485,3.1795923816451364,2.6334557154031017,2.516026512102485,3.5419458782591278,3.8688469189859234,3.1387679194061775,2.0862323981130544,1.0588936088402647,-0.05095146052826749,-1.6707646235071252,-3.099117810454004,-4.320677442140436,-6.089337681689983,-7.133717203495507,-7.580767127258127,-7.761420093122069,-7.782021220069566,-7.376410353622532,-6.594309306491368,-5.848192882530611,-8.247229265937506,-8.332350068099117,-9.650322400305129,-8.319782172830799,-4.80523408842015,-4.405793168388868,-3.676146425834702,-2.6724933061378238,2.871916971066071,2.3749279950421283,1.3877848204863312,-4.33587041425352,-4.941851860007944,-3.7012467890971266,-2.6890081469912843,-1.000602388070547,0.7076773303212462,3.697793793285655,2.834644604469247,1.336944010173113,0.304991655112417,-0.13843750795206233,-0.220162110304841,0.043043212778400175,2.033508232834663,8.529996966128067,10.913308295605532,11.239604028204724,10.559035992364329,9.326032524891787,7.83889242464943,6.461666593495863,5.115544229541456,1.2206208615455694,-6.946559277156098,-13.843228123958681,-13.53914456453822,-12.004133969731186,-8.89522389374747,-6.10643088927651,-3.249423344650495,-0.6186390947196969,1.8660277773868756,8.938854425041711,11.565308177832208,12.098208175151854,11.34946776587799,9.750078159551776,7.889592948836935,6.113722759450525,4.6241320406545015,3.695801368247146,3.2572255535832255,2.962697668786518,2.5315303352867886,1.8558019519319373,0.9727954786399096,0.3049300824351917,-0.18938100325880214,0.6949844793106763,2.1507837062515023,3.6425625325953206,4.624033597049447,5.185488168157292,5.2133801867675515,5.418388738667602,6.496106582063362,7.595950857707919,7.706216161062116,7.138067201782633,6.418683502925546,5.721517257456924,5.0502231204692976,4.373244460020658,3.6159346767857983,3.18075817673423,3.016089419750813,3.889813822143253,4.314990343662998,4.394207963634756,4.218829719300004,3.864528228460756,3.1469287833298267,-1.3402778014453816,-4.598871100496922,-6.691777744610135,-7.71712970655409,-10.17615840229928,-11.176184951378104,-10.546865860430785,-9.23410799264093,-7.93528773664849,-6.864419571535166,-6.0604783440851975,-5.2051478313114785,-4.086770187172476,-0.8439524185984055,3.3005711780870115,1.1313959340346287,-0.18712774882453687,-1.2444310764768716,-2.5569814642172446,-3.313571719723541,-3.7562255373601943,-4.845934008592451,-5.3355256749167665,-5.825150178798083,-5.114819539952123,-4.260578394185131,-2.8776561619300765,-1.4861892401357295,-1.6840729466685502,-0.8870008335758826,4.6846235194879,6.813815218934678,7.61543428441945,3.703706819581498,-0.1943387274552606,-2.410851210511737,-3.722866544289559,-3.8707681718869935,-3.8412254947460838,-3.099793140824602,-0.9533816051020381,0.7422141416051886,1.9114979745685332,3.1410726583899873,5.126570131072299,7.729212352536194,8.731868457898656,8.642952980200619,8.149944346335474,7.496494688443249,6.687208339974916,3.7497820689451373,-0.4442480475431694,-3.103499593060633,-4.5056972917454345,-4.9196301410511865,-4.996225077101997,1.3626619583050683,5.671609644059913,7.340900143979923,7.580777473656553,6.92104521710354,5.745860003181463,4.422225675578602,3.084818774152154,2.052731836805833,1.469495882566946,1.252865508514958,0.9986237206753117,0.5794975656726251,1.68995124495774,2.590752529351448,3.243200832191917,3.37479131767077,1.4837171662894661,-0.36480211234731996,-1.8103203474901193,-2.9856079498021018,-3.687844496232856,-3.8195090812315584,-3.6093733268805295,-4.400349833050143,-7.472340198929885,-8.157685787351,-8.057898264518656,-7.265871412191814,-6.265205003960716,-5.1794549394846285,-4.161291250928798,-3.4607307641472858,-2.784224253083039,-2.1039057675199615,-1.5029284150205626,-0.8796703210862802,-0.4217839697739123,0.5869542645115757,1.5560874972049419,2.5655904411441384,4.5067503471153145,5.766718611675287,6.339610211363947,6.651335691348777,6.451498988521166,5.422212526522799,4.459739846499076,4.506593313310475,4.469703313447212,4.406473381708565,4.425089484424063,4.40211529391604,4.2555372342541204,4.165397455400978,4.618640302262975,6.031086693515647,5.864578880944862,4.715694178653507,3.2885464801673265,1.7205405978925228,-0.20850136860781276,-1.9812086670393683,-3.3117076872886173,-4.176877191067717,-4.5931241797867415,-4.900117038677934,-5.232756404224574,-8.537818351453268,-9.23089455158231,-9.012033031987869,-8.390193051150789,-7.623091198885788,-6.867082236263968,-6.228858819693642,-5.574380159919599,-3.661695684270626,-1.9258331116026852,-0.7417390564186235,-0.0015319135536060458,-1.570430374186401,-4.767596394021098,-5.125541824034087,-4.27865156483341,-3.1183735980016536,-0.635178222955119,1.1743723000164437,2.517075572253759,4.1731775383582885,5.057812243636761,5.410851458867739,5.502494600859734,5.484751167392176,5.369538552352992,5.593565415996068,6.0795821446922105,7.226740513159655,6.354035309084111,5.012253594122171,3.449446094276425,1.9240282593485745],\"marker\":{},\"line\":{\"color\":\"orange\",\"width\":2.0}},{\"type\":\"scatter\",\"name\":\"signal\",\"mode\":\"lines\",\"x\":[\"2022-01-31T14:30:00\",\"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\":[4.200157862808284,7.05756342979268,8.302233248315561,6.49770340082878,3.4237289273369846,0.7076970327637229,-0.751478145359685,-1.41597898697261,-1.5912979074635152,-2.07673879022425,-2.7261665781697255,-3.131331000037138,-3.2437821614181437,-3.121199152258856,-2.922321416425874,-2.7885287445453737,-3.782087272543282,-4.598859679490435,-2.549583740316856,0.6298553709432038,2.45619157346069,3.4733028130509727,4.091304087833712,4.476588789044078,1.5949060212300457,-2.4316505385488987,-4.3094983095579975,-4.892193503053434,-4.63230357623094,-3.964282597993777,-3.079494459871042,2.2743323331311016,6.450797081113145,8.389278006801844,9.042386139923332,8.921370748553796,8.312243657179028,7.417124384370289,6.4007439035983325,5.409559921144255,4.634211672041855,4.125119234134751,3.7695826641332673,3.4222894075123325,2.987382693975575,2.415224482108436,1.2517463502812687,-0.3988239594765648,-1.9499398182110368,-3.727170708321656,-5.143249285468766,-6.134827629791654,-6.854964813556762,-7.372382579751125,-7.691319579960379,-7.784097822811116,-7.649192311096248,-7.592092555074299,-7.655877524407481,-7.913974560655998,-8.166304371053245,-7.171349519078065,-6.319517159982928,-5.644252774760354,-4.9895730385777695,0.10464930078637025,2.0374143420769992,2.8750848264684317,-1.0566815073599556,-3.3280833137574786,-4.382038543331501,-4.663894627899602,-4.2072219799985895,-2.6609482860268368,1.4398282768186594,3.4313520049209125,4.125930510309579,4.015132705460722,3.459817926053674,2.7297378150107767,2.022509330034395,1.6018612869264988,5.530693797323794,9.214277364355002,10.698106352155166,11.37492874156265,11.487942901401885,11.127317427930848,10.106759418352292,8.568286316565162,3.4970480425488875,-3.4382292904395584,-10.626166501959926,-13.35263626800998,-14.490412594171918,-13.267127636784494,-9.395569551313077,-5.388888950463335,-2.45653577192682,-0.11638273017809553,5.767661494964056,10.14560766631914,11.921574089284151,12.700944426054454,12.782883594902511,12.174490317639473,10.647594381590693,8.772327901053336,7.2494373166272394,6.016994853749557,5.010554339167319,4.179848814056705,3.4608093224934393,2.7830804366966446,2.1172708214201545,1.4681083247107454,0.9676856618374693,0.7642670306896545,0.9327977633349323,1.428244041161573,2.1320425952147666,2.8885326468635526,3.6026808533688324,4.3079994119866445,5.054101238152294,5.782804858643308,6.375236349019058,6.741377114409346,6.8511328288713225,6.721567255358678,6.39273011099852,5.904319491208814,5.32386027339906,4.732114017341461,4.277156316575741,4.015203724795025,3.9159786959087826,3.9064592917029364,3.908483951527414,3.838315729664191,1.5013437994982817,-2.59158608974442,-5.2282058408275836,-6.591869277421983,-8.037181348259095,-9.230481555298631,-10.011959056807497,-10.383358381117272,-10.344917676438039,-9.951078570547988,-9.301341648482362,-8.485191021953147,-7.548186452951031,-4.089224749140864,1.2377343767572793,3.626212849196774,4.277872920154901,3.9247736392525505,2.780303268938395,1.497228462598391,0.22875680671161946,-1.001468774269941,-2.1488427966563957,-3.1855922820667377,-3.997791818349797,-4.500341486357998,-4.623261245233211,-4.0920867282586535,-3.541163458329919,-2.9572474797860346,1.9578071424014745,5.610193588869975,7.148867594512355,6.208646484395572,2.4925214992149045,-0.7408753757895017,-2.3721553613614277,-3.269405449260847,-3.760284970059996,-3.9529775186612497,-3.5946531429183484,-2.1903515617146514,-0.6624535513573524,0.7144612466425828,2.6763739306339946,5.981772589272884,7.6890264672815105,8.606109092808598,9.024499016712824,9.089714485680965,8.878388164512522,7.046346468104915,2.200128038072931,-1.615660960643242,-3.448002124098276,-4.444849777664681,-4.991844948858546,-1.7794741652833541,2.7151443413310905,5.624712834234999,7.102053345881934,7.757475418625202,7.8586116994822826,7.534117920471088,6.8317110324479735,5.88896098263915,4.873353768173093,3.894978435616167,3.020682400856514,2.2613166210839104,1.740360120909611,1.5209773762405416,1.5833972651017416,1.8279727333318758,1.979095258159398,1.7273060360299899,0.8721338239726142,-0.23508642437381444,-1.1874661718918114,-2.0079600185619757,-2.6610041267130575,-3.2149091307095015,-4.757480909741288,-6.052150249631158,-6.945242120031304,-7.483451199738678,-7.669455131344723,-7.517277228592682,-7.072547783327264,-6.423894831852001,-5.65594834132054,-4.831660116095468,-3.9989295026068437,-3.184448605333769,-2.4147586281521636,-1.6542464927941893,-0.8709795177987769,-0.044063074320503604,1.644188464944107,3.467340431989742,4.700820583210862,5.566376356242089,6.155174927608936,6.441408460749338,6.415837098985361,6.1928756199671975,5.879836898421698,5.548717008971484,5.247199168001147,4.994909593702989,4.783960293095468,4.605893564025118,4.501623785853403,4.587154689370456,4.794130243700974,4.943264454905753,4.83157474022505,3.88895679937969,1.6652413125135226,-0.5763155800043878,-2.0590106399679273,-2.996916799304149,-3.6371492456017283,-4.1203684322140814,-4.519189146267203,-7.225093571787561,-8.671344460034053,-9.386760994123302,-9.634715244462116,-9.54843010215735,-9.213498930058458,-8.705750993244406,-8.084726733025246,-5.973061833539808,-3.1411254072833765,-1.563093314449835,-0.6988559050398231,-0.3319498761037171,-2.725429945895332,-3.993164035170783,-4.5955444141829656,-4.714487186934586,-2.6405394301768137,0.019314282011819284,1.5575584761333814,2.9048968540582907,3.8370177825531275,4.466394864950478,4.917089792858163,5.238451182071094,5.447891833403891,5.589544773149238,5.7260873647405175,5.960706243772776,6.178128221338084,6.196420557891093,5.356207419655276,3.621617340229675],\"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('0151fe48-bd08-4507-afc2-4ede6bcf60b4', 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_0151fe48bd084507afc24ede6bcf60b4();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_0151fe48bd084507afc24ede6bcf60b4();\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": 22,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"51c93107-3183-4bc2-b4cf-998c40fe723a\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_51c9310731834bc2b4cf998c40fe723a = 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-01-31T14:30:00\",\"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.8974758312411364,1.0427826546021777,-0.1461834358575249,-2.320003871703787,-2.0828186675494216,-1.4258773921565977,-1.3056246966234955,0.8923507683712646,1.3004880398007137,-1.4145261153782136,-1.490723424367288,-0.13346809364597112,1.2554988731138699,1.4709356168406371,0.7046154056786951,-0.15438493881373505,-2.0458355153087213,-1.613242604884359,2.2709742319536383,2.085316758382391,1.4781401271724048,1.053953586566129,0.7036563443774435,0.2208962286912115,-2.733517990047418,-2.5708623833405917,0.7029502701130665,2.7860355727267034,3.745318264443271,3.6530860583257168,3.6489517107198557,2.5385101651328883,1.3947009983397072,-1.2052421070920598,-2.711744515203913,-3.6882489990247347,-4.2587316066645435,-4.237532002725152,-3.7672881881952307,-2.89353340904177,-1.092265793782727,-0.256272315148828,-0.6308147447270898,-1.336057009399278,-1.9284890851353103,-2.4661759426367036,-2.922510973788394,-2.700293850977439,-2.3707376239293994,-2.362166973368327,-1.9904679180267415,-1.4459394974664734,-0.9064552795653071,-0.4096386403184411,0.31490922633784724,1.189788516319748,1.8009994285656363,-0.6551367108632071,-0.6764725436916361,-1.736347839649131,-0.15347780177755332,2.3661154306579153,1.9137239915940594,1.9681063489256525,2.3170797324399457,2.7672676702797006,0.33751365296512903,-1.4873000059821004,-3.2791889068935647,-1.6137685462504652,0.6807917542343747,1.9748864809083173,3.2066195919280425,3.368625616348083,2.2579655164669954,-0.5967074004516655,-2.788986500136466,-3.710141050348305,-3.598255434005736,-2.9498999253156177,-1.9794661172559946,0.4316469459081642,2.999303168804273,1.6990309312505296,0.5414976760495573,-0.815892749198321,-2.1619103765100984,-3.288425003281418,-3.6450928248564285,-3.452742087023706,-2.276427181003318,-3.5083299867165394,-3.217061621998756,-0.1865082965282383,2.4862786244407324,4.371903743037024,3.2891386620365672,2.1394656058128403,1.837896677207123,1.9824105075649712,3.1711929300776553,1.4197005115130672,0.17663408586770224,-1.3514766601764645,-3.0328054353507348,-4.284897368802538,-4.533871622140168,-4.148195860398834,-3.5536359483800934,-2.7597693001663313,-2.047856670380801,-1.6483184787699168,-1.605007370561502,-1.810284958056735,-1.8123407389849628,-1.6574893279695475,-0.272701182526793,1.3865166755618477,2.7097647692603886,3.195789555887874,3.0534455729425254,2.324847539903999,1.8157078852987696,2.1881071700767176,2.5418496195556255,1.923411302418808,0.7628308527635745,-0.3226936114837997,-1.1296155714143987,-1.67134413488938,-2.0194856509778623,-2.288384814423016,-2.1431020966648298,-1.716024597590648,-0.38734249443248814,0.299786618867973,0.4782292677259732,0.31237042759706757,-0.04395572306665807,-0.6913869463343643,-2.8416216009436632,-2.007285010752502,-1.4635719037825519,-1.1252604291321067,-2.1389770540401845,-1.9457033960794732,-0.5349068036232882,1.149250388476343,2.409629939789548,3.0866589990128226,3.2408633043971644,3.2800431906416687,3.4614162657785545,3.2452723305424582,2.0628368013297322,-2.4948169151621453,-4.465000668979438,-5.169204715729422,-5.33728473315564,-4.810800182321932,-3.9849823440718137,-3.84446523432251,-3.186682878260371,-2.639557896731345,-1.1170277216023257,0.23976309217286662,1.7456050833031345,2.605897488122924,1.8570905116613687,2.070246646210152,2.7268163770864255,1.2036216300647036,0.46656668990709527,-2.5049396648140743,-2.686860226670165,-1.6699758347222353,-1.3507111829281313,-0.6013627226261464,-0.08094052468608792,0.8531843778366479,2.6412715378163103,2.93256570331984,2.5739515259258856,2.4266114117474045,2.450196200438304,1.7474397632633103,1.0428419906171458,0.03684388739202049,-0.8745546703773499,-1.5932197972377153,-2.191179824537606,-3.2965643991597773,-2.6443760856161003,-1.487838632417391,-1.0576951676471587,-0.47478036338650575,-0.004380128243450798,3.1421361235884224,2.9564653027288226,1.7161873097449236,0.47872412777461903,-0.8364302015216625,-2.11275169630082,-3.111892244892486,-3.7468922582958193,-3.8362291458333164,-3.403857885606147,-2.642112927101209,-2.0220586801812024,-1.6818190554112853,-0.050408875951870824,1.0697751531109065,1.6598035670901754,1.546818584338894,-0.49537809186993176,-2.09210814837731,-2.6824541714627337,-2.7505215254282875,-2.5003783243410442,-1.8115490626695827,-0.948369200167472,-1.1854407023406415,-2.714859289188597,-2.1055355377198417,-1.1126561444873513,0.2175797875468639,1.4042501273840067,2.337822289108053,2.9112565323984656,2.9631640677047155,2.8717240882375012,2.7277543485755062,2.496001087586281,2.304778284247489,1.9929746583782513,2.241200757305765,2.427067015003719,2.609653515464642,2.8625618821712076,2.2993781796855455,1.6387896281530852,1.0849593351066877,0.2963240609122302,-1.0191959342265395,-1.956097252486285,-1.6862823066567225,-1.4101335849744858,-1.1422436272629186,-0.822109683577084,-0.5927942997869486,-0.5284230588413479,-0.44049610862414035,0.11701651640957156,1.443932004145191,1.0704486372438877,-0.22757027625224602,-1.5430282600577234,-2.168416201487167,-1.8737426811213354,-1.4048930870349805,-1.25269704732069,-1.1799603917635686,-0.9559749341850132,-0.7797486064638521,-0.7135672579573713,-1.3127247796657073,-0.5595500915482567,0.3747279621354327,1.2445221933113277,1.9253389032715624,2.34641669379449,2.4768921735507643,2.5103465731056467,2.3113661492691824,1.2152922956806913,0.8213542580312114,0.697323991486217,-1.2384804980826838,-2.0421664481257658,-1.1323777888633044,0.3168928493495553,1.5961135889329325,2.0053612072216946,1.1550580180046244,0.9595170961203778,1.2682806842999979,1.2207944610836332,0.9444565939172618,0.585404808001571,0.2462999853210821,-0.07835328105089889,0.004020642846829681,0.353494779951693,1.2660342693868785,0.17590708774602692,-1.1841669637689218,-1.9067613253788513,-1.6975890808811007],\"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('51c93107-3183-4bc2-b4cf-998c40fe723a', 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_51c9310731834bc2b4cf998c40fe723a();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_51c9310731834bc2b4cf998c40fe723a();\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": 23,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"d92aa1a2-d3cb-4755-bda7-c135b9bacffb\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_d92aa1a2d3cb4755bda7c135b9bacffb = 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-01-31T14:30:00\",\"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,-1.0],\"marker\":{},\"line\":{\"color\":\"blue\",\"width\":1.0}},{\"type\":\"scatter\",\"mode\":\"lines\",\"x\":[\"2022-01-31T14:30:00\",\"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,-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('d92aa1a2-d3cb-4755-bda7-c135b9bacffb', 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_d92aa1a2d3cb4755bda7c135b9bacffb();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_d92aa1a2d3cb4755bda7c135b9bacffb();\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": 25,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div id=\"ea1f8a51-d55b-4122-ae43-264dbd1869b2\"><!-- Plotly chart will be drawn inside this DIV --></div><script type=\"text/javascript\">\r\n",
|
|
"var renderPlotly_ea1f8a51d55b4122ae43264dbd1869b2 = 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-01-31T14:30:00\",\"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,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\":\"Trading P&L (long only) for MACD-generated trades on SPY\"}};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('ea1f8a51-d55b-4122-ae43-264dbd1869b2', 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_ea1f8a51d55b4122ae43264dbd1869b2();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
"}\r\n",
|
|
"else {\r\n",
|
|
" renderPlotly_ea1f8a51d55b4122ae43264dbd1869b2();\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($\"Trading P&L (long only) for MACD-generated trades on {symbol}\");\n",
|
|
"cbars"
|
|
]
|
|
}
|
|
],
|
|
"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
|
|
}
|