Skip to content

Instantly share code, notes, and snippets.

View ayushmaan's full-sized avatar
🏠
Working from home

Ayushman Gupta ayushmaan

🏠
Working from home
  • India
View GitHub Profile
@imtaehyun
imtaehyun / technical-analysis-indicators-without-talib-code.py
Last active May 4, 2024 15:36
Technical analysis Indicators without Talib (code)
# https://www.quantopian.com/posts/technical-analysis-indicators-without-talib-code
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)
@tomykaira
tomykaira / wthor.rb
Created August 10, 2012 01:40
parser for WTHOR file (othello, reversi)
#!/usr/bin/env ruby
# parser for WTHOR file
# Copyrihgt (c) tomykaira 2012
# Lisence: MIT
filenames = ARGV.length == 0 ? ["WTH_2000/WTH_2000.WTB"] : ARGV
CLEAN = true
filenames.each do |fn|