<jupyter_start><jupyter_text>Test environment<jupyter_code>import sys
sys.path.append("../code")
from data import Data
from graph import Graph
API_KEY = "<KEY>"
symbols = ["UBER", "MSFT", "DIS"]
symbol = "UBER"<jupyter_output><empty_output><jupyter_text>Process data<jupyter_code>stock = Data(key=API_KEY, symbol=symbol)
stock.get_x()
stock.get_mean()
stock.get_low()
stock.get_high()
stock.get_sma()
stock.get_ema()
stock.get_bollinger_band()
levels = stock.get_fibonacci_retracement()<jupyter_output><empty_output><jupyter_text>Visualize data<jupyter_code>viz = Graph(stock.data, stock.x, symbol, levels)
viz.create()<jupyter_output><empty_output><jupyter_text>Technical indicators Golden cross/death cross<jupyter_code>print("SMA 15 - EMA 100: " + stock.check_for_cross() + " cross")<jupyter_output>SMA 15 - EMA 100: no cross<jupyter_text>Price Cross over<jupyter_code>sma50 = stock.data["4. close"].rolling(window=50).mean().tail(5).values
sma50
print("SMA 50 crossing Close: " + stock.check_for_price_crossover())<jupyter_output>SMA 50 crossing Close: no<jupyter_text>Predict time series<jupyter_code># TODO<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14098073555166374, 'fraction_numerical': 0.01926444833625219, 'mean_word_length': 9.297297297297296, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '222833', 'license': 'Apache-2.0', 'n_tokens_mistral': 463, 'n_tokens_neox': 438, 'n_words': 69, 'path': 'notebooks/20201112_test_stock_code.ipynb', 'repo_name': 'Schlagoo/stocks', 'size': '1153'}