📄 indicatorhistory.java
字号:
package com.jsystemtrader.indicator;
import java.util.*;
/**
* Holds the history of a technical indicator.
*/
public class IndicatorHistory {
private final List<Indicator> history;
private final String name;
private final int subChartNumber;
public IndicatorHistory(String name, int subChartNumber) {
this.name = name;
this.subChartNumber = subChartNumber;
this.history = new ArrayList<Indicator> ();
}
public String getName() {
return name;
}
public int getSubChartNumber() {
return subChartNumber;
}
/**
* Synchronized so that the strategy performance chart can be accessed while
* the priceBars are still being added to the priceBar history.
*/
synchronized public void addIndicator(Indicator indicator) {
history.add(indicator);
}
public List<Indicator> getHistory() {
return history;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -