Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Programm structure

Simon W edited this page Dec 22, 2017 · 4 revisions

This application is written in Java 8 and uses the ta4j-lib for indicator calculations, trading records and strategies. JFreeChart is the underlying charting application. For the GUI elements I have chosen JavaFX (earlier versions used swing).

There are four main classes:

  • TaChart
    • This is the JavaFX node (StackPane) that holds the chart. It is the 'view' component of the application.
  • ChartIndicatorBox
    • A ChartIndicatorBox is the 'model' component of the application. It stores the indicators, trading records and strategies that can/should be plotted. It also holds a reference to a PropertiesManager to establish a connection to a xml file that stores parameters of indicators.
  • RootController.java
    • This is the 'controller' component of the application. It creates the TaChart node with help of a IndicatorBox. It also creates the menu entries and the toggle bar for active indicators inclusive logic.
  • AbstractProgramm
    • This abstract class should make it easier for the user to start the application with customized indicators, strategies and trading records.
    • The user just has to override the abstract public ChartIndicatorBox createIndicatorBox(TimeSeries series) function to handle to the application the customized ChartIndicatorBox
Clone this wiki locally