Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import streamlit as st
|
2 |
import yfinance as yf
|
3 |
-
from
|
4 |
|
5 |
def main():
|
6 |
st.title("Trading Pattern Detection App")
|
@@ -12,11 +12,8 @@ def main():
|
|
12 |
# Download latest available data using yfinance
|
13 |
data = yf.download(stock_symbol, period=period)
|
14 |
|
15 |
-
# Use
|
16 |
-
|
17 |
-
|
18 |
-
# Detect patterns using the library
|
19 |
-
result = scanner.detect_patterns(data)
|
20 |
|
21 |
# Display the result
|
22 |
st.write("## Result:")
|
|
|
1 |
import streamlit as st
|
2 |
import yfinance as yf
|
3 |
+
from tradingpattern import tradingpatterns # Adjust import based on your package structure
|
4 |
|
5 |
def main():
|
6 |
st.title("Trading Pattern Detection App")
|
|
|
12 |
# Download latest available data using yfinance
|
13 |
data = yf.download(stock_symbol, period=period)
|
14 |
|
15 |
+
# Use tradingpatterns module
|
16 |
+
result = tradingpatterns.detect_patterns(data)
|
|
|
|
|
|
|
17 |
|
18 |
# Display the result
|
19 |
st.write("## Result:")
|