mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-03 03:47:42 +00:00
149 lines
39 KiB
Plaintext
149 lines
39 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 35,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"vscode": {
|
|
"languageId": "dotnet-interactive.csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div></div><div></div><div></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;\n"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 40,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"vscode": {
|
|
"languageId": "dotnet-interactive.csharp"
|
|
}
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"Yahoo_Feed data = new(Symbol: \"MSFT\", Period: 200);\n",
|
|
"ZLEMA_Series calc1 = new(data.OHLC4,20);\n",
|
|
"HMA_Series calc2 = new(data.OHLC4,20);\n",
|
|
"HEMA_Series calc3 = new(data.OHLC4,20);"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 41,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"vscode": {
|
|
"languageId": "dotnet-interactive.csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"\n",
|
|
"<div>\n",
|
|
" <div id=\"de6d1a44-4ec0-4daa-95d1-e9d61d3df30f\"><!-- Plotly chart will be drawn inside this DIV --></div>\r\n",
|
|
"<script type=\"text/javascript\">\r\n",
|
|
"\r\n",
|
|
" var renderPlotly_de6d1a444ec04daa95d1e9d61d3df30f = function() {\r\n",
|
|
" var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-2.6.3.min'}}) || require;\r\n",
|
|
" fsharpPlotlyRequire(['plotly'], function(Plotly) {\r\n",
|
|
"\r\n",
|
|
" var data = [{\"type\":\"candlestick\",\"name\":\"\",\"x\":[\"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\"],\"close\":[283.22,289.63,277.52,284.47,281.78,289.98,277.35,274.73,264.58,269.5,260.55,255.35,261.12,261.5,266.82,254.08,253.14,252.56,260.65,259.62,262.52,265.9,273.24,271.87,272.42,274.58,270.02,268.75,272.5,270.41,264.79,252.99,242.26,244.49,251.76,244.97,247.65,253.74,253.13,258.86,267.7,264.89,256.48,260.26,256.83,259.58,262.85,266.21,268.4,267.66,264.51,253.67,252.72,254.08,256.72,254.25,259.53,262.27,264.84,260.36,258.83,251.9,268.74,276.41,280.74,278.01,274.82,282.47,283.65,282.91,280.32,282.3,289.16,287.02,291.91,293.47,292.71,291.32,290.17,286.15,277.75,276.44,275.79,278.85,268.09,265.23,262.97,261.47,260.4,256.06,253.25,258.09,258.52,264.46,266.65,251.99,252.22,245.38,244.74,244.52,242.45,238.95,240.98,237.92,237.45,236.41,241.07,237.5,232.9,240.74,248.88,249.2,246.79,234.24,229.25,225.41,225.75,234.24,228.56,237.53,238.5,236.48,236.15,242.12,247.25,250.66,231.32,226.75,235.87,232.13,228.17,220.1,214.25,221.39,227.87,228.87,224.51,242.98,247.11],\"open\":[282.1,285.19,288.61,277.71,283.96,282.59,285.54,274.81,270.06,271.69,265.68,257.69,257.35,259.96,266.11,263.0,253.9,257.24,255.49,257.89,258.14,262.27,268.48,272.53,275.2,264.45,270.31,272.06,266.64,271.71,267.78,260.58,245.11,243.86,248.31,245.98,244.7,250.26,251.89,255.57,261.81,268.21,263.98,257.59,257.05,256.39,256.16,263.75,265.12,264.79,265.65,265.88,250.19,250.57,255.72,259.75,257.58,259.9,259.79,265.24,261.0,259.86,261.16,269.75,277.7,277.82,276.0,276.76,281.8,279.15,284.05,279.64,288.17,290.85,288.48,291.0,291.99,289.74,290.19,288.9,282.08,276.44,275.41,277.33,279.08,265.85,266.67,265.39,258.87,261.7,256.2,254.7,257.51,260.5,265.78,258.84,253.53,249.77,244.26,242.47,242.07,244.27,237.87,239.54,237.05,239.98,236.81,238.89,238.29,235.41,245.09,245.99,247.93,240.9,233.05,227.62,225.4,219.85,235.54,235.82,243.24,237.04,235.77,234.74,243.76,247.26,231.17,231.04,226.24,233.76,234.6,229.46,220.09,217.55,221.99,228.7,227.37,235.43,242.99],\"high\":[290.97,290.98,289.88,284.94,284.13,290.88,286.35,279.25,272.36,273.75,271.36,259.88,263.04,265.82,268.33,263.6,257.67,258.54,261.5,261.33,264.58,267.11,273.34,274.77,277.69,274.65,273.45,274.18,273.13,273.0,272.71,260.58,249.02,245.74,255.3,247.42,250.5,254.75,257.17,259.37,267.98,268.3,266.91,261.97,259.53,259.77,262.98,267.99,269.06,268.1,266.53,265.94,253.55,255.14,260.37,260.84,259.72,264.87,264.89,265.33,261.5,259.88,270.05,277.84,282.0,281.28,277.89,283.5,283.8,283.65,285.92,283.08,289.81,291.21,291.91,294.18,294.04,293.35,291.91,289.25,282.46,278.86,277.23,279.02,280.34,267.4,267.05,267.11,260.89,264.74,257.83,258.83,260.43,265.23,267.45,260.4,254.23,251.4,245.3,245.14,243.51,247.66,243.86,241.13,241.45,241.8,242.33,239.95,240.54,241.61,250.36,250.58,250.34,241.32,234.56,229.06,227.86,236.1,237.24,238.96,243.93,239.61,241.31,243.0,247.84,251.04,238.3,233.69,236.6,234.92,235.74,231.3,220.41,221.59,228.41,231.65,228.63,243.33,247.99],\"low\":[279.16,281.46,276.5,276.22,280.15,276.73,274.34,271.27,263.32,265.07,259.3,250.02,255.35,255.78,262.46,252.77,251.88,246.44,253.43,253.5,257.13,261.43,267.56,268.93,270.04,261.6,268.41,267.22,265.94,269.61,264.63,252.53,241.53,241.51,246.42,243.02,244.03,249.51,250.37,253.63,261.72,263.28,256.32,255.76,252.9,254.61,254.74,262.4,265.02,263.29,262.18,252.04,248.11,245.94,254.77,253.3,253.68,258.91,257.03,259.07,256.81,249.57,258.85,267.87,276.63,275.84,272.38,276.61,280.17,278.68,279.32,277.61,286.94,286.51,286.94,290.11,290.42,289.47,289.08,285.56,277.22,275.4,275.11,274.52,267.98,263.85,260.66,261.33,255.41,254.47,251.94,253.22,254.79,260.29,265.16,251.59,249.86,244.02,242.06,240.85,239.64,238.9,237.57,235.2,236.9,234.5,234.73,234.41,232.73,234.66,244.98,244.1,246.08,233.17,226.73,224.11,223.96,219.13,228.34,235.14,235.37,234.29,234.87,234.5,241.3,245.83,230.06,225.78,226.05,231.15,227.33,220.04,213.98,213.43,221.28,225.84,224.33,235.0,241.93],\"increasing\":{\"marker\":{},\"line\":{}},\"decreasing\":{\"marker\":{},\"line\":{}}},{\"type\":\"scatter\",\"name\":\"\",\"mode\":\"lines\",\"x\":[\"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\"],\"y\":[283.8625,286.81500000000005,285.34083333333336,283.45750000000004,282.99550000000005,283.5341666666667,282.7332142857143,280.6625,277.39972222222224,275.274,272.2154545454545,268.559375,266.1775,264.23803571428573,263.0765,261.37359375,259.7210294117647,258.6148611111111,257.9263157894737,257.62737500000003,257.90976785714287,258.50669472789116,259.6636761823777,260.8409451173893,262.0787122490665,262.7207396539173,263.46614540116326,264.14103631533817,264.65641380911546,265.27794582729496,265.48742717707637,264.647672207831,262.7269415213709,260.9338994717166,259.93519476012455,258.5458904972555,257.41961521180264,256.9096518582976,256.5506373956026,256.5798624055452,257.3629707478742,258.2017354385529,258.4608558729764,258.50220293269297,258.3188978914841,258.249240949438,258.3381227637772,258.98092059579847,259.7351186342938,260.32796447864683,260.74601548068046,260.6161568634728,259.7139038288563,258.9251987022986,258.7318464449368,258.5702420216095,258.4804570671705,258.7668421083924,259.04023809806927,259.3697392315865,259.3854783523878,258.996623271208,259.53980200728347,260.81863038754216,262.5756655887286,264.06726886599256,265.134433735898,266.5344876658125,268.0412031262113,269.28465997133407,270.53397806930224,271.49812301508297,273.11925415650364,274.6219442368366,276.0684257380903,277.6038137630341,279.0024981665547,280.14226024593046,281.11323546060373,281.7181654167367,281.54286394847605,281.08973404862115,280.59404509160964,280.2927074638373,279.681259133948,278.3385201688101,277.00508967654247,275.7498430406813,274.14438179871166,272.72515496073913,271.0184735359069,269.60814272296335,268.48474817791924,267.9262007324031,267.7675149483647,266.6187040009014,265.27025600081555,263.591422095976,261.7341438011211,259.97327296291905,258.25367553787913,256.74808739141446,255.15969811604165,253.56806020022816,252.10562589544455,250.77866152444983,249.63164614116891,248.49410841343854,247.31514570739677,246.43798897335898,246.52270430922957,246.6126848512077,246.72433391299745,245.8370163974739,244.41420531200018,242.712852425143,241.0966283846532,239.78552091944812,239.08404273664354,238.8724672379156,239.00461321525697,238.79988814713727,238.63085118074324,238.62696059210103,239.23748815475807,240.13844166382873,239.43120912441645,238.4677606363768,237.7746405757695,237.3189605209343,236.76096428084531,235.66230101600289,233.90231996685975,232.43447997001596,231.7157199728716,231.4346990230743,230.93710863992436,231.7226221027887,232.9876104739517],\"marker\":{},\"line\":{\"color\":\"yellow\",\"width\":2.0}},{\"type\":\"scatter\",\"name\":\"\",\"mode\":\"lines\",\"x\":[\"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\"],\"y\":[283.8625,285.1747222222223,284.82694444444445,284.1047666666667,283.5251,283.29768333333334,283.0475166666667,282.26736388888895,280.5987861111111,278.76589217171716,276.2048497474747,272.57733319735814,268.7207508907759,265.08666366133866,262.5036826007326,260.2114741671319,257.8387660040532,255.53757607088693,253.8967585270272,252.98752495018744,253.22187307852965,254.56879681590334,257.09767510822513,260.33872348484846,263.92458192640686,266.96159458874456,269.4946485930736,271.4402264069264,272.6651301948052,273.4983273809524,273.5060386363636,271.73340043290045,267.53117965367966,261.9474318181818,256.748958008658,251.9693699134199,248.08870573593066,245.61386818181813,244.3727364718614,244.6156670995671,246.8065340909091,250.39520400432906,254.11817878787878,257.2040847402597,259.14109556277054,260.28343160173154,261.0225638528138,262.0418029220779,263.36158181818183,264.5797857142858,265.397800974026,265.2778598484848,263.7301852813853,261.4257031385282,259.4355546536797,257.89795963203466,256.8724845238095,256.56392456709955,256.7377583333333,257.4141098484848,258.1298702380953,258.37791482683986,259.29943603896106,261.44537521645026,264.93095248917746,268.9268823593074,272.41020389610395,275.6178984848485,278.6633329004329,281.3107412337662,283.6332305194805,285.1977514069264,286.7608889610389,288.20762424242423,289.55226525974024,291.0265692640693,292.4093961038961,293.4419064935065,294.0368847402598,293.9388267316018,292.5360800865801,290.0037149350649,286.7572871212121,283.53910270562767,280.3286831168831,276.48045790043295,272.3495575757576,268.3354361471862,264.35166363636364,260.91693030303026,257.7124494588744,255.07411926406925,253.26656504329003,252.7026853896104,253.5634591991342,254.24048430735934,254.30103030303036,253.34100194805197,251.43327445887448,249.1119373376623,246.60457110389606,244.2345586580086,241.88530930735934,239.54897251082247,237.45936190476186,235.87237456709954,234.93036948051946,234.45507619047618,234.1503182900432,234.16146850649343,235.38463474025966,237.4230423160173,239.9312782467532,241.36956352813854,241.0946775974026,239.20661093073596,236.34733387445885,233.4199002164502,231.28877153679656,230.32088993506494,230.5113651515152,231.1327624458874,232.02913971861472,233.32542813852814,235.55053658008654,238.68221525974022,240.36317121212113,240.32179220779216,239.11963409090907,237.49322911255413,235.85930389610388,233.70551103896105,230.37797261904763,226.5534306277056,223.43885270562768,221.73076482683973,221.13022272727272,222.6177772727273,225.9099286796537],\"marker\":{},\"line\":{\"color\":\"red\",\"width\":3.0}},{\"type\":\"scatter\",\"name\":\"\",\"mode\":\"lines\",\"x\":[\"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\"],\"y\":[283.8625,284.49314478922923,284.4729425956133,283.7162900777047,283.15739936417697,283.30837386423684,282.8215182150219,280.9183132338535,277.2036519115271,273.93633166373513,270.1650549798153,265.04446223560177,261.0429106698112,258.5217053344418,258.16061726658154,257.1501483770203,255.23881461329523,253.27885344511355,252.57005057678157,252.6018856067954,253.52341413442647,255.46935506949706,258.93133017568306,262.7439652200437,266.482253155362,268.51847162795605,269.93492576570617,270.86757410658197,271.2275161367555,271.6339445918514,271.1755972504634,268.13054495618405,261.97514760064655,255.5127057296188,251.4086629115672,247.83034733565955,245.39242207599915,245.00143704601362,245.76046324159677,247.70054608332563,251.5340182557892,255.8035861305162,258.4500175203442,259.62167651486027,259.54084420023247,259.20209058399905,259.1515461676953,260.47269052029617,262.480305759175,264.20893851786883,265.2647104231671,264.72748164983085,261.8843574524974,258.6672076216405,256.99053107954364,256.2089120394608,256.03492524716097,256.96059911072496,258.2005569779024,259.55190378941325,260.0954178745959,259.33644438357135,260.2084758813411,263.3225691007408,268.1214241195849,272.539573486413,275.42120918631474,278.1690614734075,280.89342898501945,282.8264190266842,284.34658938315124,285.0115914797432,286.8449620356055,288.83012723468306,290.6687828522472,292.58272459445595,294.155574359562,294.97986195430053,295.16973172292853,294.39692576328025,291.6925215350525,287.97314989300656,284.2383401047409,281.41316750316304,278.62979202043954,274.5539898543559,270.4060797101556,266.8343424483995,263.06242034544766,259.967763618339,256.7620235812021,254.41902371932832,253.217383074931,253.76411335829755,255.75273439334552,255.78945044321944,254.44858196272662,251.8311329679586,248.45464741546698,245.22433616591428,242.36661613214247,240.31094505582706,238.47535532812216,236.76510307728142,235.42047569977436,234.5145620660929,234.13044609573112,233.8670787264241,233.43459153866516,233.50562646788194,235.79400932053625,238.64309353689788,241.354364198557,241.38363702604667,239.01284104385053,235.2007017513955,231.31196073891044,228.4042686037057,227.481826527805,228.472788037561,230.81366632845808,232.6077503023386,233.97235277137628,235.30886843838775,237.80903572371972,241.13318216539767,240.80996579258618,238.40931936324023,235.99545640231463,234.3508375310806,232.94724286199806,230.54649740459053,226.4597222449235,222.70620002754933,221.10174981576571,221.46062170622344,222.02048939805147,225.38941893032654,230.56489090270605],\"marker\":{},\"line\":{\"color\":\"blue\",\"width\":2.0}}];\r\n",
|
|
" var layout = {\"width\":1200,\"height\":600,\"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\":true,\"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\":true,\"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\":{}},\"gridcolor\":\"#252525\"},\"yaxis\":{\"gridcolor\":\"#252525\"},\"title\":{\"text\":\"MSFT\"},\"font\":{\"size\":10.0,\"color\":\"#ffffff\"},\"paper_bgcolor\":\"#1e1e1e\",\"plot_bgcolor\":\"#1e1e1e\"};\r\n",
|
|
" var config = {\"responsive\":true};\r\n",
|
|
" Plotly.newPlot('de6d1a44-4ec0-4daa-95d1-e9d61d3df30f', 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_de6d1a444ec04daa95d1e9d61d3df30f();\r\n",
|
|
" };\r\n",
|
|
" document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n",
|
|
" }\r\n",
|
|
" else {\r\n",
|
|
" renderPlotly_de6d1a444ec04daa95d1e9d61d3df30f();\r\n",
|
|
" }\r\n",
|
|
"</script>\r\n",
|
|
"\n",
|
|
" \n",
|
|
"</div> \n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"var layout = Layout.init<IConvertible>( \n",
|
|
" PlotBGColor : Color.fromString(\"#1e1e1e\"),\n",
|
|
" PaperBGColor : Color.fromString(\"#1e1e1e\"),\n",
|
|
" Font:Font.init(Size:10, Color: Color.fromString(\"#ffffff\")));\n",
|
|
"\n",
|
|
"var yAxis = LinearAxis.init<IConvertible, IConvertible, IConvertible, IConvertible, IConvertible, IConvertible>(\n",
|
|
" GridColor:Color.fromString(\"#252525\")); \n",
|
|
"\n",
|
|
"var candles = Chart2D.Chart.Candlestick<double, double, double, double, DateTime, string>(data.Open.v, data.High.v, data.Low.v, data.Close.v, data.Open.t, \"\");\n",
|
|
"var line1 = Chart2D.Chart.Line<DateTime,double,bool>(calc1.t, calc1.v,false,\"\").WithLineStyle(Width: 2, Color: Color.fromString(\"yellow\"));\n",
|
|
"var line2 = Chart2D.Chart.Line<DateTime,double,bool>(calc2.t, calc2.v, false,\"\").WithLineStyle(Width: 3, Color: Color.fromString(\"red\"));\n",
|
|
"var line3 = Chart2D.Chart.Line<DateTime,double,bool>(calc3.t, calc3.v, false,\"\").WithLineStyle(Width: 2, Color: Color.fromString(\"blue\"));\n",
|
|
"var chart = Chart.Combine(new []{candles, line1, line2, line3})\n",
|
|
" .WithSize(1200,600)\n",
|
|
" .WithMargin(Margin.init<int, int, int, int, int, bool>(30,10,40,30,1,false))\n",
|
|
" .WithXAxisRangeSlider(RangeSlider.init(Visible:false))\n",
|
|
" .WithYAxis(yAxis)\n",
|
|
" .WithXAxis(yAxis)\n",
|
|
" .WithTitle(\"MSFT\")\n",
|
|
" .WithLayout(layout);\n",
|
|
"\n",
|
|
"chart"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": ".NET (C#)",
|
|
"language": "C#",
|
|
"name": ".net-csharp"
|
|
},
|
|
"language_info": {
|
|
"file_extension": ".cs",
|
|
"mimetype": "text/x-csharp",
|
|
"name": "C#",
|
|
"pygments_lexer": "csharp",
|
|
"version": "9.0"
|
|
},
|
|
"orig_nbformat": 4
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|