Skip to content

Commit c14726b

Browse files
committed
Issue #23: Added empty constructor to class MqlRates, made public setters of properties
1 parent 05452e3 commit c14726b

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

MtApi5/MqlRates.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
52

63
namespace MtApi5
74
{
@@ -19,13 +16,17 @@ public MqlRates(DateTime time, double open, double high, double low, double clos
1916
this.real_volume = real_volume;
2017
}
2118

22-
public DateTime time { get; private set; } // Period start time
23-
public double open { get; private set; } // Open price
24-
public double high { get; private set; } // The highest price of the period
25-
public double low { get; private set; } // The lowest price of the period
26-
public double close { get; private set; } // Close price
27-
public long tick_volume { get; private set; } // Tick volume
28-
public int spread { get; private set; } // Spread
29-
public long real_volume { get; private set; } // Trade volume
19+
public MqlRates()
20+
{
21+
}
22+
23+
public DateTime time { get; set; } // Period start time
24+
public double open { get; set; } // Open price
25+
public double high { get; set; } // The highest price of the period
26+
public double low { get; set; } // The lowest price of the period
27+
public double close { get; set; } // Close price
28+
public long tick_volume { get; set; } // Tick volume
29+
public int spread { get; set; } // Spread
30+
public long real_volume { get; set; } // Trade volume
3031
}
3132
}

0 commit comments

Comments
 (0)