Python Forum
[Tkinter] User interface for stock portfolio optimisation
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] User interface for stock portfolio optimisation
#1
Hi, I am a noob on Python and more generally in programming, but I am doing my best to learn thanks to online tutorials.
I would like to code a small downloadable program allowing anyone to obtain the optimal stock weights to include in a portfolio in order to maximise expected return.

Based on a code I found online and some personal adjustments, the code is operational and gives me the outcomes (text and graphs) that I want already. However, I would like to make the code "responsive" to inputs entered in a user interface. For this, I know I have to use Tkinter. I have made several attemps, but I cannot succeed to connect my python code and the user interface thanks to Tkinter. I just miss that "link" to make everything go smoothly.

Could you please help me?
I would like to add a picture of the final result I am looking for but I don't know how. So here is a quick description.

I would like to have a downloadable program with an icon, which opens a window when we click on it. Just like any program.
Once the window opens it would be organised as follow:

Top section: Logo + Welcome + Instructions
Next to it, two buttons one "Export the document as PDF" and another "Clear inputs"

Inputs section: 3 labels with 3 entry boxes
Label 1: How many stocks are there in your portfolio?
Entry box 1: horizontal slider widget ranging from 3 to 30
Label 2: Enter the related stock tickers (yahoo finance)
Entry box 2: text box - important to type stocks as follow 'AAPL', 'GOOGL', 'FB' ......
Label 3: Precise time interval for historic performance and volatility
Entry box 3: radio button - 1 year or 3 years or 5 years from today (last closing price when the user opens the program)

Outputs section: 2 graphs and 2 texts
Graph 1
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] User interface for stock portfolio optimisation Fourchelangue 2 2,631 Apr-04-2020, 01:11 PM
Last Post: Fourchelangue
  [PyQt] Invoking user interface design 12203276 1 3,449 May-22-2017, 06:46 PM
Last Post: Larz60+
  [PyQt] User Interface to Python Raures 11 10,603 Jan-24-2017, 05:01 AM
Last Post: California

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020