{"id":3469,"date":"2017-08-24T15:28:10","date_gmt":"2017-08-24T15:28:10","guid":{"rendered":"https:\/\/www.tyndale-securities.com\/?page_id=3469"},"modified":"2026-10-09T16:46:34","modified_gmt":"2026-10-09T16:46:34","slug":"stock-trends","status":"publish","type":"page","link":"https:\/\/tyndale-securities.com\/index.php\/stock-trends\/","title":{"rendered":"Stock Trends"},"content":{"rendered":"<form action=\"\" method=\"post\">\n<table>\n<tbody>\n<tr>\n<td>Security<\/td>\n<td>\n<select name=\"securitycode\"><option value=\"\">Select<\/option><\/select>\n<\/td>\n<td>Between<\/td>\n<td><input type=\"text\" name = \"date1\"  placeholder=\"\" id=\"date_one\"\/><\/td>\n<td>And<\/td>\n<td><input type=\"text\" name = \"date2\"  placeholder=\"\" id=\"date_two\"\/><\/td>\n<td><button type=\"submit\" name=\"submit\">Search<\/button><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/form>\n<p><script src=\"https:\/\/code.highcharts.com\/stock\/highstock.js\"><\/script><br \/>\n<script src=\"https:\/\/code.highcharts.com\/stock\/modules\/exporting.js\"><\/script><br \/>\n<script src=\"https:\/\/www.tyndale-securities.com\/wp-content\/themes\/brokerpress\/assets\/js\/jquery.dataTables.min.js\"><\/script><br \/>\n<script> \n $(document).ready(function(){\n        $(\"#date_one\").datepicker({ dateFormat: 'yy-mm-dd' }).bind(\"change\",function(){\n            var minValue = $(this).val();\n            minValue = $.datepicker.parseDate(\"yy-mm-dd\", minValue);\n            minValue.setDate(minValue.getDate());\n            \/* $(\"#date1\").datepicker( \"option\", \"minDate\", minValue );*\/\n        })\n$(\"#date_two\").datepicker({ dateFormat: 'yy-mm-dd' }).bind(\"change\",function(){\n            var minValue = $(this).val();\n            minValue = $.datepicker.parseDate(\"yy-mm-dd\", minValue);\n            minValue.setDate(minValue.getDate());\n          \/*  $(\"#date2\").datepicker( \"option\", \"minDate\", minValue ); *\/\n        })\n$('#myTable').DataTable();\n    });    \nvar HighChart={\ndata:\"\",\nchartData:new Array(),\ntoUTC: function (date){\nvar xdate = date;\n        var xval = xdate.split(\" \")[0].split(\"-\");\n            console.log(xval); \n        var xdata = Date.UTC(xval[0], parseInt(xval[1])-1, xval[2]);\nreturn xdata;\n},\nprocessDataChart: function(){\n\/\/var d=jsonData;\nvar jsonData=JSON.parse(this.data);\nvar item;\nfor (var i=0; i<jsonData.length; i++){\nitem=new Array();\nitem.push(this.toUTC(jsonData[i].pricedate));\nitem.push(jsonData[i].price);\nthis.chartData.push(item);\n\/\/for (d in jsonData){\n\/\/jsonData[i].pricedate=toUTC(jsonData[i].pricedate);\n}\n\/\/console.log(chartData.toString());\n},\nchart: function() {\n    \/\/ Create the chart\n    Highcharts.stockChart('container', {\n        rangeSelector: {\n            selected: 1\n        },\n        title: {\n            text: 'Price Movement'\n        },\n        series: [{\n            name: 'Price',\n            data: this.chartData,\n            marker: {\n                enabled: true,\n                radius: 3\n            },\n            shadow: true,\n            tooltip: {\n                valueDecimals: 2\n            }\n        }]\n    });\n}\n};\nHighChart.data=document.getElementById(\"json\").value;\nHighChart.processDataChart();\nHighChart.chart();\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Security Select Between And Search<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3469","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/pages\/3469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/comments?post=3469"}],"version-history":[{"count":141,"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/pages\/3469\/revisions"}],"predecessor-version":[{"id":5872,"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/pages\/3469\/revisions\/5872"}],"wp:attachment":[{"href":"https:\/\/tyndale-securities.com\/index.php\/wp-json\/wp\/v2\/media?parent=3469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}