var themeBackgroundColor if (localStorage.getItem("pref-theme") === "dark") { themeBackgroundColor='#1d1e20'; } else if (localStorage.getItem("pref-theme") === "light") { themeBackgroundColor='white'; } else if (window.matchMedia('(prefers-color-scheme: dark)').matches) { themeBackgroundColor='#1d1e20'; } Highcharts.setOptions({ colors: ['#1abc9c','#3498db','#9b59b6','#2ecc71','#E7E08B','#f1c40f','#e67e22','#e74c3c','#ecf0f1','#95a5a6'], title: { style: { color: '#767B80' }, text: '' }, subtitle: { style: { color: '#767B80' }, text: '' }, legend: { enabled: true, itemStyle: { "color": "#767B80", "cursor": "pointer", "fontSize": "12px", "fontWeight": "bold", "textOverflow": "ellipsis" } }, credits: { enabled: false }, exporting: { enabled: false }, chart: { backgroundColor: 'transparent' }, yAxis: { gridLineWidth: 1, gridLineColor: '#767B80', labels: { style: { color: '#767B80' } }, title: { style: { color: '#767B80' }, text: null, }, }, xAxis: { gridLineWidth: 0, labels: { style: { color: '#767B80' } }, } }); Greeks Call Delta Put Delta Gamma Vega Call Theta Put Theta Call Rho Put Rho .chart { height: 500px; float: center; width: 100%; } .chart1 { height: 400px; float: left; width: 50%; } .spacer { height: 20px; } .chart2 { height: 400px; float: left; width: 50%; } var chartsCalldelta = [] var optionsCalldelta = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipCalldelta(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/calldelta-vol.csv", function(csv) { chartsCalldelta[1] = Highcharts.chart('graph-calldelta-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsCalldelta, yAxis: { min: 0, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/calldelta-ir.csv", function(csv) { chartsCalldelta[2] = Highcharts.chart('graph-calldelta-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsCalldelta, yAxis: { min: 0, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) var chartsPutdelta = [] var optionsPutdelta = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipPutdelta(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/putdelta-vol.csv", function(csv) { chartsPutdelta[1] = Highcharts.chart('graph-putdelta-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsPutdelta, yAxis: { min: -1, max:0, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/putdelta-ir.csv", function(csv) { chartsPutdelta[2] = Highcharts.chart('graph-putdelta-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsPutdelta, yAxis: { min: -1, max:0, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) var chartsGamma = [] var optionsGamma = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipGamma(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/gamma-vol.csv", function(csv) { chartsGamma[1] = Highcharts.chart('graph-gamma-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsGamma, yAxis: { min: 0, max:0.06, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/gamma-ir.csv", function(csv) { chartsGamma[2] = Highcharts.chart('graph-gamma-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsGamma, yAxis: { min: 0, max:0.06, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) var chartsVega = [] var optionsVega = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipVega(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/vega-vol.csv", function(csv) { chartsVega[1] = Highcharts.chart('graph-vega-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsVega, yAxis: { min: 0, max:0.4, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/vega-ir.csv", function(csv) { chartsVega[2] = Highcharts.chart('graph-vega-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsVega, yAxis: { min: 0, max:0.4, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) var chartsCalltheta = [] var optionsCalltheta = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipCalltheta(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/calltheta-vol.csv", function(csv) { chartsCalltheta[1] = Highcharts.chart('graph-calltheta-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsCalltheta, yAxis: { min: -0.06, max:0, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/calltheta-ir.csv", function(csv) { chartsCalltheta[2] = Highcharts.chart('graph-calltheta-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsCalltheta, yAxis: { min: -0.06, max:0, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) var chartsPuttheta = [] var optionsPuttheta = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipPuttheta(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/puttheta-vol.csv", function(csv) { chartsPuttheta[1] = Highcharts.chart('graph-puttheta-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsPuttheta, yAxis: { min: -0.04, max:0.03, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/puttheta-ir.csv", function(csv) { chartsPuttheta[2] = Highcharts.chart('graph-puttheta-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsPuttheta, yAxis: { min: -0.04, max:0.03, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) var chartsCallrho = [] var optionsCallrho = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipCallrho(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/callrho-vol.csv", function(csv) { chartsCallrho[1] = Highcharts.chart('graph-callrho-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsCallrho, yAxis: { min: 0, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/callrho-ir.csv", function(csv) { chartsCallrho[2] = Highcharts.chart('graph-callrho-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsCallrho, yAxis: { min: 0, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) var chartsPutrho = [] var optionsPutrho = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, } }; function syncTooltipPutrho(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Time" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/putrho-vol.csv", function(csv) { chartsPutrho[1] = Highcharts.chart('graph-putrho-vol', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsPutrho, yAxis: { min: -1, max:0, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Volatility" }, data: { csv: csv, }, }); }) $.get("../../../files/trading/putrho-ir.csv", function(csv) { chartsPutrho[2] = Highcharts.chart('graph-putrho-ir', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'x', inverted: false, }, plotOptions: optionsPutrho, yAxis: { min: -1, max:0, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'top', }, title: { }, subtitle: { text: "Spot vs. Interest Rate" }, data: { csv: csv, }, }); }) Resume Call Time Volatility Interest Rate Put Time Volatility Interest Rate .chart { height: 500px; float: center; width: 100%; } .chart13 { height: 400px; float: left; width: 33%; } .spacer { height: 20px; } .chart23 { height: 400px; float: left; width: 33%; } .spacer { height: 20px; } .chart33 { height: 400px; float: left; width: 33%; } var chartsCallT = [] var optionsCallT = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, events: { legendItemClick: function(event) { if (this.visible) { $('#graph-call-t10').highcharts().series[this.index].hide(); $('#graph-call-t5').highcharts().series[this.index].hide(); $('#graph-call-t1').highcharts().series[this.index].hide(); } else { $('#graph-call-t10').highcharts().series[this.index].show(); $('#graph-call-t5').highcharts().series[this.index].show(); $('#graph-call-t1').highcharts().series[this.index].show(); } return false; } }, } }; function syncTooltipCallT(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "T=1" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/call-t5.csv", function(csv) { chartsCallT[1] = Highcharts.chart('graph-call-t5', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsCallT, yAxis: { labels:{enabled:false}, min: -0.1, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "T=0.5" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/call-t1.csv", function(csv) { chartsCallT[2] = Highcharts.chart('graph-call-t1', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsCallT, yAxis: { labels:{enabled:false}, min: -0.1, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "T=0.1" }, data: { csv: csv, }, }); }); var chartsCallVol = [] var optionsCallVol = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, events: { legendItemClick: function(event) { if (this.visible) { $('#graph-call-vol10').highcharts().series[this.index].hide(); $('#graph-call-vol25').highcharts().series[this.index].hide(); $('#graph-call-vol50').highcharts().series[this.index].hide(); } else { $('#graph-call-vol10').highcharts().series[this.index].show(); $('#graph-call-vol25').highcharts().series[this.index].show(); $('#graph-call-vol50').highcharts().series[this.index].show(); } return false; } }, } }; function syncTooltipCallVol(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "vol=10%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/call-vol25.csv", function(csv) { chartsCallVol[1] = Highcharts.chart('graph-call-vol25', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsCallVol, yAxis: { labels:{enabled:false}, min: -0.1, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "vol=25%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/call-vol50.csv", function(csv) { chartsCallVol[2] = Highcharts.chart('graph-call-vol50', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsCallVol, yAxis: { labels:{enabled:false}, min: -0.1, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "vol=50%" }, data: { csv: csv, }, }); }); var chartsCallir = [] var optionsCallir = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, events: { legendItemClick: function(event) { if (this.visible) { $('#graph-call-ir1').highcharts().series[this.index].hide(); $('#graph-call-ir5').highcharts().series[this.index].hide(); $('#graph-call-ir10').highcharts().series[this.index].hide(); } else { $('#graph-call-ir1').highcharts().series[this.index].show(); $('#graph-call-ir5').highcharts().series[this.index].show(); $('#graph-call-ir10').highcharts().series[this.index].show(); } return false; } }, } }; function syncTooltipCallir(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "ir=1%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/call-ir5.csv", function(csv) { chartsCallir[1] = Highcharts.chart('graph-call-ir5', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsCallir, yAxis: { labels:{enabled:false}, min: -0.1, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "ir=5%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/call-ir10.csv", function(csv) { chartsCallir[2] = Highcharts.chart('graph-call-ir10', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsCallir, yAxis: { labels:{enabled:false}, min: -0.1, max:1, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "ir=10%" }, data: { csv: csv, }, }); }); var chartsPutT = [] var optionsPutT = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, events: { legendItemClick: function(event) { if (this.visible) { $('#graph-put-t10').highcharts().series[this.index].hide(); $('#graph-put-t5').highcharts().series[this.index].hide(); $('#graph-put-t1').highcharts().series[this.index].hide(); } else { $('#graph-put-t10').highcharts().series[this.index].show(); $('#graph-put-t5').highcharts().series[this.index].show(); $('#graph-put-t1').highcharts().series[this.index].show(); } return false; } }, } }; function syncTooltipPutT(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "T=1" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/put-t5.csv", function(csv) { chartsPutT[1] = Highcharts.chart('graph-put-t5', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsPutT, yAxis: { labels:{enabled:false}, min: -1, max:0.5, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "T=0.5" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/put-t1.csv", function(csv) { chartsPutT[2] = Highcharts.chart('graph-put-t1', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsPutT, yAxis: { labels:{enabled:false}, min: -1, max:0.5, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "T=0.1" }, data: { csv: csv, }, }); }); var chartsPutVol = [] var optionsPutVol = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, events: { legendItemClick: function(event) { if (this.visible) { $('#graph-put-vol10').highcharts().series[this.index].hide(); $('#graph-put-vol25').highcharts().series[this.index].hide(); $('#graph-put-vol50').highcharts().series[this.index].hide(); } else { $('#graph-put-vol10').highcharts().series[this.index].show(); $('#graph-put-vol25').highcharts().series[this.index].show(); $('#graph-put-vol50').highcharts().series[this.index].show(); } return false; } }, } }; function syncTooltipPutVol(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "vol=10%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/put-vol25.csv", function(csv) { chartsPutVol[1] = Highcharts.chart('graph-put-vol25', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsPutVol, yAxis: { labels:{enabled:false}, min: -1, max:0.5, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "vol=25%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/put-vol50.csv", function(csv) { chartsPutVol[2] = Highcharts.chart('graph-put-vol50', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsPutVol, yAxis: { labels:{enabled:false}, min: -1, max:0.5, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "vol=50%" }, data: { csv: csv, }, }); }); var chartsPutir = [] var optionsPutir = { series:{ marker: { enabled: false }, point: { events: { mouseOver: function(){ } } }, events: { legendItemClick: function(event) { if (this.visible) { $('#graph-put-ir1').highcharts().series[this.index].hide(); $('#graph-put-ir5').highcharts().series[this.index].hide(); $('#graph-put-ir10').highcharts().series[this.index].hide(); } else { $('#graph-put-ir1').highcharts().series[this.index].show(); $('#graph-put-ir5').highcharts().series[this.index].show(); $('#graph-put-ir10').highcharts().series[this.index].show(); } return false; } }, } }; function syncTooltipPutir(container, p) { var i = 0; for (; i \u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "ir=1%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/put-ir5.csv", function(csv) { chartsPutir[1] = Highcharts.chart('graph-put-ir5', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsPutir, yAxis: { labels:{enabled:false}, min: -1, max:0.5, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "ir=5%" }, data: { csv: csv, }, }); }); $.get("../../../files/trading/put-ir10.csv", function(csv) { chartsPutir[2] = Highcharts.chart('graph-put-ir10', { chart: { type: 'spline', plotBorderWidth: 0, zoomType: 'xy', inverted: false, }, plotOptions: optionsPutir, yAxis: { labels:{enabled:false}, min: -1, max:0.5, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', }, xAxis:{ visible:true, gridLineWidth: 0.30, gridLineColor: '#afbac4', gridLineDashStyle: 'solid', plotLines: [{ color: 'gold', width: 2, value: 100 }], }, tooltip: { pointFormat: '\u25CF {series.name}: {point.y}', shared: true }, legend: { enabled: true, verticalAlign: 'bottom', }, title: { }, subtitle: { text: "ir=10%" }, data: { csv: csv, }, }); });