Created Indicator interface implemented by SMAIndicator
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user