package testing;

import org.apache.commons.math3.stat.regression.SimpleRegression;
import storage.Funds;
import storage.OrderHistory;
import storage.TradeHistory;

import java.util.*;

public class Backtest {
    private static final String APP_NAME = "den_ac_deka_var2";
    private static final double VALUE_ETH = 100.0;
    private static final double VALUE_EUR = 0.0;
    private static final int ROUNDTRIP_TIME_MS = 20000;
    private static int NUM_ITERATIONS_FOR_ORDER = 9;
    private static int BUY_THRESHOLD = 9;
    private static int SELL_THRESHOLD = -9;

    private static SimpleRegression srbuyvolume = new SimpleRegression(true);
    private static SimpleRegression srsellvolume = new SimpleRegression(true);
    private static SimpleRegression srprice = new SimpleRegression(true);

    private static OrderHistory orders = new OrderHistory();
    private static Funds funds = new Funds();
    private static TradeHistory trades;

    private static double buyvslope = 0.0;
    private static double sellvslope = 0.0;
    private static double priceslope = 0.0;
    private static int buyindicator = 0;
    private static double currentPrice = 0.0;
    private static int counter = 0;
    private static double fees = 0.0;
    private static long sinceid = 0L;
    private static String trend = "";

    private static int counterbuys = 0;
    private static int countersells = 0;
    private static int counterneutrals = 0;

    private static boolean backtest = false;

    private static Map<String, Double> results = new HashMap<String, Double>();

    public Backtest(){

    }




}
