A zoomable candlestick chart.
Copyright © 2015, Anil Nair - MIT License
| // NTP_System_Time.ino | |
| //schufti --of ESP8266.com Forum provided source for NTP time. | |
| //Developer of code not given | |
| #include <WiFi.h> | |
| #include <WiFiUdp.h> | |
| #include <sys/time.h> | |
| #include <time.h> |
| //var csv is the CSV contents with headers | |
| function csvJSON(csv){ | |
| var lines=csv.split('\n'); | |
| var result = []; | |
| var headers=lines[0].split(','); | |
| lines.splice(0, 1); | |
| lines.forEach(function(line) { |
| function slugify(string) { | |
| const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;' | |
| const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------' | |
| const p = new RegExp(a.split('').join('|'), 'g') | |
| return string.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters | |
| .replace(/&/g, '-and-') // Replace & with 'and' | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word characters |
| #!/bin/sh | |
| if [ "$PYENV_VERSION" -ne "" ] | |
| then | |
| name=`pyenv version-name` | |
| python=`pyenv which python` | |
| else | |
| name=`basename "$VIRTUAL_ENV"` | |
| python="$VIRTUALENV/bin/python" | |
| fi |
| import matplotlib.pyplot as plt | |
| from datetime import datetime | |
| import alpaca_trade_api as tradeapi | |
| import numpy as np | |
| from positionhandling import positionHandler | |
| import loader | |
| api = tradeapi.REST() |
A zoomable candlestick chart.
Copyright © 2015, Anil Nair - MIT License
| import pandas as pd | |
| import numpy as np | |
| # names for the asset selection | |
| NAMES = ['6M_Momentum', '1Y_Momentum', '6M_LowVol'] | |
| # allocation algorithm names (equally weighted) | |
| ALLOCATION = ['EW'] | |
| class Backtest: |
| These scripts set up Crostini on my Pixelbook |
| function OHLC(params) { | |
| OHLC.prototype._init = function (params) { | |
| this.height = params.height || 650; | |
| this.width = params.width || 1300; | |
| this.margin = params.margin || 50; | |
| this.data = params.data; | |
| this.movingAverageTypes = ['mov_avg_10d', 'mov_avg_50d', 'mov_avg_200d']; | |
| this.dateFormat = d3.time.format("%Y-%m-%d"); |
| --- | |
| Description: AWSAppSync DynamoDB Example | |
| Resources: | |
| GraphQLApi: | |
| Type: "AWS::AppSync::GraphQLApi" | |
| Properties: | |
| Name: AWSAppSync DynamoDB Example | |
| AuthenticationType: AWS_IAM | |
| PostDynamoDBTableDataSource: |