Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("This is a test!!\n");
system("pause");
}
/** sfo_chart only can use Highstock version <= v4.2.4 ! **/
/** Highstock v4.2.5 doesn't allow empty series, which lets baseSeries of navigator become undefined and then causes an error when redrawing this chart! **/
$.fn.sfo_chart = function(param) {
var that = this;
var SPACING = 2;
var yAxis_id_list = [];
var yAxis_ratio = [];
var focused_series = null;
var chart_data = {
/** Indicator List **/
var indicator_list = {
'PRICE': {
fields: ['open', 'high', 'low', 'close'],
optgroup: 'Overlays',
param_def: {},
chart_type: {
'price': 'candlestick' //Notice!! The word 'price' is just a keyword!!
}
$.fn.sfo_price_info_daily = function() {
this.$open_today = $('<th class="text-center"> - </th>');
this.$high_today = $('<th class="text-center"> - </th>');
this.$low_today = $('<th class="text-center"> - </th>');
this.$close_today = $('<th class="text-center"> - </th>');
this.$volume_today = $('<th class="text-center"> - </th>');
this.$close_prev = $('<th class="text-center"> - </th>');
this.$volume_prev = $('<th class="text-center"> - </th>');
this.$oi_prev = $('<th class="text-center"> - </th>');
this.$change = $('<th class="text-center"> - </th>');