-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathBaseStudyModel.cs
74 lines (68 loc) · 1.77 KB
/
BaseStudyModel.cs
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
67
68
69
70
71
72
73
74
using System;
namespace VisualHFT.Model
{
public partial class BaseStudyModel
{
private DateTime _timestamp;
private decimal _value;
private string _valueFormatted;
private string _format;
private string _valueColor = null;
private decimal _marketMidPrice;
public BaseStudyModel()
{
}
public DateTime Timestamp
{
get => _timestamp;
set => _timestamp = value;
}
public decimal Value
{
get => _value;
set => _value = value;
}
public string Format
{
get => _format;
set => _format = value;
}
public string ValueFormatted
{
get => _valueFormatted;
set => _valueFormatted = value;
}
public string ValueColor
{
get => _valueColor;
set => _valueColor = value;
}
public decimal MarketMidPrice
{
get => _marketMidPrice;
set => _marketMidPrice = value;
}
public string Tooltip { get; set; }
public string Tag { get; set; }
public void copyFrom(BaseStudyModel e)
{
_timestamp = e.Timestamp;
_value = e.Value;
_format = e.Format;
_valueFormatted = e.ValueFormatted;
_valueColor = e.ValueColor;
_marketMidPrice = e.MarketMidPrice;
Tooltip = e.Tooltip;
}
public void Reset()
{
_timestamp = DateTime.MinValue;
_value = 0;
_format = "";
_valueFormatted = "";
_valueColor = "";
_marketMidPrice = 0;
Tooltip = "";
}
}
}