-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeInterval.cs
More file actions
30 lines (25 loc) · 747 Bytes
/
Copy pathTimeInterval.cs
File metadata and controls
30 lines (25 loc) · 747 Bytes
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
using System;
namespace Forward_Calculator {
///object used to temporarily store all the data for a day of a stock
public class TimeInterval {
public string date;
public float dividend;
public float close;
//just getting the information because it's on the same page
public float open;
public float high;
public float low;
public float volume;
//not actually needed but could be useful later on
///constructor to make a new TimeInterval object
public TimeInterval(string _date, float _open, float _high, float _low, float _close, float _volume, float _dividend) {
date = _date;
open = _open;
high = _high;
low = _low;
close = _close;
volume = _volume;
dividend = _dividend;
}
}
}