Skip to content

Instantly share code, notes, and snippets.

# IMPORTS
import pandas as pd
import math
import os.path
import time
from bitmex import bitmex
from binance.client import Client
from datetime import timedelta, datetime
from dateutil import parser
from tqdm import tqdm_notebook #(Optional, used for progress-bars)
@praveenbm5
praveenbm5 / godmode_indicator
Created April 1, 2022 14:53 — forked from iUmarov/godmode_indicator
GodMode Indicator in Python
# This is a non-multiexchange version of GODMODE indicator
# If you want the multi exchange version of GODMODE indicator, you need to implement willy and csi calculations too
# Original source of god mode indicator:
# https://www.tradingview.com/script/oA3U7pok-GODMODE-OSCILLATOR-FRESH-BREAD-GENERATOR-FREE-TO-USE/
import pandas as pd
import talib
channel_length = 9
average_length = 26
import pandas as pd
import numpy as np
from datetime import datetime
import yfinance as yf
import math
import matplotlib.pyplot as plt
def Supertrend(df, atr_period, multiplier):
high = df['High']
@praveenbm5
praveenbm5 / MF_S&R
Created December 30, 2021 02:39 — forked from CryptoMF/MF_S&R
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © CryptoMF
//@version=4
study("MF_S&R", overlay=true)
// Inputs
ln = input(7, title="Pivot Length", type=input.integer) // Number of bars to use to calculate pivot
mb = input(3, title="Max Breaks", type=input.integer) // Maximum number of times a line can be broken before it's invalidated
@praveenbm5
praveenbm5 / MultiSig.sh
Created October 7, 2019 07:27
MultiSig Tx
#!/bin/bash
read -r -d '' bitcoin_conf <<-EOM
## Generated - `date`
## bitcoin.conf configuration file. Lines beginning with # are comments.
##
daemon=1
regtest=1
listen=0
Verifying my Blockstack ID is secured with the address 1Q2Uum4mKtBwzZKHRbqTsz7xVQHJuPXv8h https://explorer.blockstack.org/address/1Q2Uum4mKtBwzZKHRbqTsz7xVQHJuPXv8h
@praveenbm5
praveenbm5 / OpenWRT.Armbian.OPZ
Last active October 22, 2023 20:51
OpenWRT on Orange Pi Zero using Armbian uBoot and Kernel
Guide:
1. Install Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a uSD card using Win32DiskImager or Ubuntu Disk Image Writer
2. (Optional) Mount the uSD in Ubuntu Laptop and expand the partition using GParted.
3. Delete everything from uSD except /boot, /lib/modules and /lib/firmware.
4. Mount openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt
@praveenbm5
praveenbm5 / process.sh
Created June 25, 2015 17:11
Custom Xubuntu 15.04 ISO
#!/bin/bash
##################################
# Note:
# DO NOT EXECUTE THIS SCRIPT.
# THIS IS JUST A GUIDE.
#################################
##################################
# Assumes you are in ~/CustomCD