⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profitandlosshistory.java

📁 网上期货交易的外挂原码,可实现自动交易功能,自动添加模块
💻 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 + -