-
Notifications
You must be signed in to change notification settings - Fork 2
/
Bot.h
66 lines (54 loc) · 1.23 KB
/
Bot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Bot.h
*
* Created on: Nov 20, 2016
* Author: rocco
*/
#ifndef BOT_H_
#define BOT_H_
#include <cmath>
#include <iostream>
using namespace std;
class Bot {
public:
Bot();
Bot(double startMonies, int newSavingFactor);
void updateMonies(double monIn);
void updateAssets(double asIn);
void updateSavings(double savIn);
void updatePPA1(double in);
void updatePPB1(double in);
void updatePPA2(double in);
void updatePPB2(double in);
void updateNumStocks(double in);
double getMonies();
double getAssets();
double getSavings();
double assetCurrVal(double currPrice);
double getInitialMoneyCount();
double getTotalWorth(double currPrice);
double getPPA1();
double getPPB1();
double getPPA2();
double getPPB2();
int getSavingFactor();
int getNumStocks();
void checkForBuySignal(double currPrice);
void checkForSellSignal(double currPrice);
void checkToSave();
private:
double monies;
double assets; // price when purchased
double savings;
double assetValAtCurrentPrice;
double startingMonies;
double totalWorth;
double pricePointA_Mov1;
double pricePointB_Mov1;
double pricePointA_Mov2;
double pricePointB_Mov2;
int savingFactor;
int numStocks;
// move things from exchange to the bot
};
#endif /* BOT_H_ */