forked from rvn911/pycryptobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
troubleshoot.py
30 lines (24 loc) · 921 Bytes
/
troubleshoot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import numpy as np
import matplotlib.pyplot as plt
from models.PyCryptoBot import PyCryptoBot
from models.Trading import TechnicalAnalysis
from models.Binance import AuthAPI as BAuthAPI, PublicAPI as BPublicAPI
from models.CoinbasePro import AuthAPI as CBAuthAPI, PublicAPI as CBPublicAPI
from views.TradingGraphs import TradingGraphs
app = PyCryptoBot()
trading_data = app.getHistoricalData(app.getMarket(), app.getGranularity())
ta = TechnicalAnalysis(trading_data)
ta.addAll()
df_data = ta.getDataFrame()
df_fib = ta.getFibonacciRetracementLevels()
df_sr = ta.getSupportResistanceLevels()
print (df_data)
print (df_fib)
print (df_sr)
graphs = TradingGraphs(ta)
#graphs.renderBuySellSignalEMA1226MACD(saveOnly=False)
#graphs = TradingGraphs(ta)
#graphs.renderPercentageChangeHistogram()
#graphs.renderCumulativeReturn()
#graphs.renderPercentageChangeScatterMatrix()
graphs.renderFibonacciBollingerBands(period=24)