All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.barrybecker4.simulation.trading.model.tradingstrategy.MarketPosition Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version
/** Copyright by Barry G. Becker, 2015. Licensed under MIT License: http://www.opensource.org/licenses/MIT  */
package com.barrybecker4.simulation.trading.model.tradingstrategy;

/**
 * Represents the investors current state.
 * i.e. how much is invested, how much is held in reserve, etc.
 *
 * @author Barry Becker
 */
public class MarketPosition {

    private double invested;
    private double reserve;
    private double sharesOwned;

    public MarketPosition(double invested, double reserve, double sharesOwned) {
        this.invested = invested;
        this.reserve = reserve;
        this.sharesOwned = sharesOwned;
    }

    public double getInvested() {
        return invested;
    }

    public double getReserve() {
        return reserve;
    }

    public double getSharesOwned() {
        return sharesOwned;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy