Skip to content

Instantly share code, notes, and snippets.

@hayerpa
hayerpa / code.py
Created August 19, 2020 05:10 — forked from shashankvemuri/code.py
Backtest Strategies using Python
import numpy as np
import pandas as pd
import yfinance as yf
import datetime as dt
import matplotlib.pyplot as plt
import mplfinance as mpf
from finta import TA
from pylab import rcParams
from yahoo_fin import stock_info as si
import talib
import yfinance as yf
import datetime as dt
import warnings
import talib
import pandas as pd
import time
from yahoo_fin import stock_info as si
from scipy.stats import zscore
import numpy as np
@hayerpa
hayerpa / screener.py
Created August 19, 2020 04:58 — forked from shashankvemuri/screener.py
the entire stock screener code
from pandas_datareader import data as pdr
from yahoo_fin import stock_info as si
from pandas import ExcelWriter
import yfinance as yf
import pandas as pd
import requests
import datetime
import time
yf.pdr_override()
@hayerpa
hayerpa / create-kiteconnect-candlestick-q.py
Created April 5, 2020 04:48 — forked from oldmonkABA/create-kiteconnect-candlestick-q.py
Implementation of ticks to 1min and 15 mins candles in zerodha kiteconnect using python queues. This code is modified version of the code given in http://ezeetrading.in/Articles/Candles_formation_from_tick_data_zerodha.html. The difference is that in on_ticks functions the only action performed is that the ticks are place in a event queue. This …
################## Ticks to candles in kiteconnect python ####################
# Author : Arun B
# Reference : http://ezeetrading.in/Articles/Candles_formation_from_tick_data_zerodha.html
# Purpose : Convert ticks to candles by putting ticks in a queue. This redues time wasted in on_ticks function
################################################################################
from kiteconnect import KiteTicker
import datetime
from copy import copy
import queue