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