David Li commited on
Commit
fba7a0d
·
1 Parent(s): 6315f57

fix: reverse image order

Browse files
Files changed (1) hide show
  1. pages/ta.py +11 -7
pages/ta.py CHANGED
@@ -65,6 +65,16 @@ st.write(data)
65
  st.header(f"Adjusted Close Price\n {company_name}")
66
  st.line_chart(data["Close"])
67
 
 
 
 
 
 
 
 
 
 
 
68
  # get ta graph
69
  bbands_img = build_bbands_img(data, symbol, 15, 2, ran_bbands_name)
70
  # plot ta using open bb sdk in streamlit
@@ -73,12 +83,6 @@ st.header(f"Bollinger Bands")
73
  # if bbands.png exists, display it
74
 
75
  if bbands_img:
76
- image = PIL.image(io.BytesIO(bytes(bbands_img, "utf-8")))
77
  st.image(bbands_img, caption='Bollinger bands chart')
78
 
79
- donchian_img = build_donchian_img(data, symbol, ran_donchian_name)
80
- # plot ta using open bb sdk in streamlit
81
- st.header(f"Donchian")
82
-
83
- if donchian_img:
84
- st.image(donchian_img, caption='Donchian Openbb chart')
 
65
  st.header(f"Adjusted Close Price\n {company_name}")
66
  st.line_chart(data["Close"])
67
 
68
+
69
+ donchian_img = build_donchian_img(data, symbol, ran_donchian_name)
70
+ # plot ta using open bb sdk in streamlit
71
+ st.header(f"Donchian")
72
+
73
+
74
+ if donchian_img:
75
+ print(donchian_img)
76
+ st.image(donchian_img, caption='Donchian Openbb chart')
77
+
78
  # get ta graph
79
  bbands_img = build_bbands_img(data, symbol, 15, 2, ran_bbands_name)
80
  # plot ta using open bb sdk in streamlit
 
83
  # if bbands.png exists, display it
84
 
85
  if bbands_img:
86
+ print(bbands_img)
87
  st.image(bbands_img, caption='Bollinger bands chart')
88