Created Indicator interface implemented by SMAIndicator

This commit is contained in:
7u83
2017-10-28 09:15:26 +02:00
parent 543e984282
commit 65581557e5
6 changed files with 105 additions and 38 deletions

View File

@ -33,8 +33,10 @@ import chart.painter.LineChartPainter;
import chart.painter.YLegendPainter;
import gui.Globals;
import sesim.Exchange.QuoteReceiver;
import sesim.Indicator;
import sesim.OHLCData;
import sesim.Quote;
import sesim.SMAIndicator;
/**
*
@ -60,6 +62,9 @@ public class MasterChart extends javax.swing.JPanel implements QuoteReceiver, Ch
Globals.se.addQuoteReceiver(this);
Indicator in = new SMAIndicator(get());
this.chart.setChartDef(chartDef);
this.xLegend.setChartDef(chartDef);
this.yLegend.setChartDef(chartDef);
@ -88,6 +93,12 @@ public class MasterChart extends javax.swing.JPanel implements QuoteReceiver, Ch
this.yLegend.addChartPainter(yp);
// this.yLegend.addChartPainter(p);
//this.yLegend.addChartPainter(pc);