This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from DWX_ZeroMQ_Connector_v2_0_1_RC8 import DWX_ZeroMQ_Connector | |
| OP_BUY = 0 | |
| OP_SELL = 1 | |
| OP_BUYLIMIT = 2 | |
| OP_SELLLIMIT = 3 | |
| OP_BUYSTOP = 4 | |
| OP_SELLSTOP = 5 | |
| zmq = DWX_ZeroMQ_Connector() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import email | |
| import imaplib | |
| import time | |
| import logging | |
| def readmail(volume): | |
| time.sleep(1.5) | |
| m = imaplib.IMAP4_SSL("imap.gmail.com") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| """Online learning.""" | |
| import numpy as np | |
| from numpy import sign | |
| import itertools as it | |
| from numpy import array as A, zeros as Z | |
| import math |