Files
UoL/CM2005 Object Oriented Programming/Midterm/Midterm Project/TradingBot.h
2021-06-16 17:33:44 -05:00

19 lines
451 B
C++

#pragma once
#include "OrderBook.h"
#include <vector>
//#include "CSVReader.h"
class Bot
{
public:
MerkelMain app;
Bot(MerkelMain app);
/** returns a vector with the Y, B0 and B1 values in the formula Y = B0 + B1.X */
std::vector<double> linearRegresion(std::vector<OrderBookEntry> orderList, unsigned int start, unsigned int end);
private:
double getMean(std::vector<OrderBookEntry>);
std::vector<std::string> Bot::getTimeStamps();
};