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

📄 indicatorhistory.java

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