mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-03-13 17:19:50 +00:00
readme for stock visualiser added
This commit is contained in:
parent
1cbe598691
commit
39724249ae
14
scripts/STOCK VISUALISER/README.md
Normal file
14
scripts/STOCK VISUALISER/README.md
Normal file
@ -0,0 +1,14 @@
|
||||
A python script for STOCK VISUALISER
|
||||
Issue no. - #414
|
||||
|
||||
|
||||
A proper and concise visualization of an stock is necessary to understand it before investing. It's not possible to visualise it over a long period of time in conventional softwares.
|
||||
|
||||
|
||||
yfinance library, gets the stock growth
|
||||
Tkcalendar, give user a option to can choose the duration for stock analysis
|
||||
mplfinance library, plots the graph
|
||||
|
||||
|
||||
after running the program allows to choose the date from which user needs to see the graph then user need to press visualise button and they have to give token/stock number so the graph will be shown for that stock
|
||||
|
@ -1,5 +1,4 @@
|
||||
# # import required packages
|
||||
|
||||
# import required packages
|
||||
import yfinance as yf
|
||||
import mplfinance as mpf
|
||||
import matplotlib.pyplot as plt
|
||||
@ -22,13 +21,9 @@ def printInput():
|
||||
mpf.plot(a, type='candle', volume=True, title = inputtxt.get(1.0))
|
||||
|
||||
# TextBox Creation
|
||||
inputtxt = tk.Text(frame,
|
||||
height = 2,
|
||||
width = 25
|
||||
)
|
||||
inputtxt = tk.Text(frame, height = 2, width = 25)
|
||||
inputtxt.pack()
|
||||
|
||||
|
||||
start_date = tkcalendar.DateEntry(frame, text = "Start Date")
|
||||
start_date.pack(padx=10,pady=10)
|
||||
|
||||
@ -38,9 +33,7 @@ end_date.pack(padx=10,pady=10)
|
||||
|
||||
|
||||
# Button Creation
|
||||
printButton = tk.Button(frame,
|
||||
text = "Print",
|
||||
command = printInput)
|
||||
printButton = tk.Button(frame, text = "Print", command = printInput)
|
||||
printButton.pack()
|
||||
|
||||
# Label Creation
|
||||
|
Loading…
x
Reference in New Issue
Block a user