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