This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy | |
| import pandas as pd | |
| import math as m | |
| # REF : https://www.quantopian.com/posts/technical-analysis-indicators-without-talib-code | |
| #Moving Average | |
| def MA(df, n): | |
| MA = pd.Series(pd.rolling_mean(df['Close'], n), name = 'MA_' + str(n)) | |
| df = df.join(MA) | |
| return df |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| module.exports = { | |
| mode: 'development', | |
| entry: './web-app/index.js', | |
| output: { | |
| filename: '[name].bundle.js', | |
| path: path.resolve(__dirname, 'dist'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "My App", | |
| "version": "0.0.0", | |
| "main": "./web-app/index.js", | |
| "scripts": { | |
| "start": "webpack && webpack-dev-server --mode development", | |
| "build": "webpack" | |
| }, | |
| "license": "ISC", | |
| "devDependencies": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var crypto = require('crypto'); | |
| var WSProtocolHandler = { | |
| "8":{ | |
| handshake:function(req,socket,head,callback){ | |
| var key = req.headers["sec-websocket-key"]; | |
| if(!key)return false; | |
| key += "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; | |
| var sha1 = crypto.createHash('sha1'); | |
| sha1.update(key); |
OlderNewer