Skip to content

Instantly share code, notes, and snippets.

@antonpenev
antonpenev / package.json
Created December 18, 2019 12:03 — forked from surma/package.json
Boilerplate for quick one-off TypeScript projects. Just run `npm start`
{
"name": "tsquickstart",
"version": "1.0.0",
"description": "Boilerplate for quick one-off TypeScript projects. Just run `npm start`",
"scripts": {
"init": "test -f tsconfig.json || (tsc --init -t ESNext -m ESNext && npm install)",
"start": "npm run init && concurrently \"npm run watch\" \"npm run serve\"",
"serve": "http-server",
"watch": "tsc -p . --watch",
"build": "tsc -p ."
@antonpenev
antonpenev / Technical Indicators without TA-lib.py
Created March 7, 2018 14:08 — forked from kevincdurand1/Technical Indicators without TA-lib.py
Technical Indicators without TA-lib #tags: Technical Indicators, Quant
import numpy
import pandas as pd
import math as m
#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