├── MgFx.History
├── CsvLoader
│ ├── DateFormat.cs
│ ├── FileFormat.cs
│ └── RegexFormats.cs
├── Metadata.cs
├── MgFx.History.csproj
├── Mt5Loader
│ ├── Mt5Header.cs
│ └── Mt5PriceQuote.cs
├── Price.cs
├── Properties
│ └── AssemblyInfo.cs
├── Settings.StyleCop
├── TimeSeries.cs
└── packages.config
├── MgFx.Indicators.sln
├── MgFx.Indicators
├── ATR.cs
├── ATRP.cs
├── Ac.cs
├── Adx.cs
├── Ao.cs
├── BOP.cs
├── BearsPower.cs
├── BullsPower.cs
├── COG.cs
├── DmiMinus.cs
├── DmiPlus.cs
├── Ema.cs
├── Extensions.cs
├── FIR.cs
├── Highest.cs
├── IIR.cs
├── Indicator.cs
├── LWMA.cs
├── Lowest.cs
├── MgFx.Indicators.csproj
├── Momentum.cs
├── Properties
│ └── AssemblyInfo.cs
├── Rsi.cs
├── Settings.StyleCop
├── Sma.cs
├── Trix.cs
├── Wpr.cs
└── packages.config
└── README.md
/MgFx.History/CsvLoader/DateFormat.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) 2003-2015 Mariusz Gumowski. All rights reserved.
4 | //
5 | //
6 | // Date format selector class.
7 | //
8 | // --------------------------------------------------------------------------------------------------------------------
9 |
10 | namespace MgFx.History.CsvLoader
11 | {
12 | ///
13 | /// Date format selector class.
14 | ///
15 | public static class DateFormat
16 | {
17 | ///
18 | /// Gets file format.
19 | ///
20 | /// Select .
21 | /// Proper file format as .
22 | public static string Get(FileFormat fileFormat)
23 | {
24 | switch (fileFormat)
25 | {
26 | case FileFormat.Generic:
27 | return "YYYYMMHH";
28 | }
29 |
30 | return string.Empty;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/MgFx.History/CsvLoader/FileFormat.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) 2003-2015 Mariusz Gumowski. All rights reserved.
4 | //
5 | //
6 | // Various file formats supported by .
7 | //
8 | // --------------------------------------------------------------------------------------------------------------------
9 |
10 | namespace MgFx.History.CsvLoader
11 | {
12 | ///
13 | /// Various file formats supported by .
14 | ///
15 | public enum FileFormat
16 | {
17 | ///
18 | /// The generic date time format.
19 | /// Example: 20120201 183205
20 | ///
21 | Generic,
22 |
23 | ///
24 | /// Metatrader date time format.
25 | /// Example: 2012.02.01,18:32
26 | ///
27 | Metatrader,
28 |
29 | ///
30 | /// Metastock date time format.
31 | /// Example: 201202011832
32 | ///
33 | Metastock,
34 |
35 | ///
36 | /// Ninjatrader date time format.
37 | /// Example: 20120201 183205
38 | ///
39 | NinjaTrader
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/MgFx.History/CsvLoader/RegexFormats.cs:
--------------------------------------------------------------------------------
1 | // --------------------------------------------------------------------------------------------------------------------
2 | //
3 | // Copyright (c) 2003-2015 Mariusz Gumowski. All rights reserved.
4 | //
5 | //
6 | // The regex formats.
7 | //
8 | // --------------------------------------------------------------------------------------------------------------------
9 |
10 | namespace MgFx.History.CsvLoader
11 | {
12 | ///
13 | /// The regex formats.
14 | ///
15 | public static class RegexFormats
16 | {
17 | ///
18 | /// The get.
19 | ///
20 | ///
21 | /// The file format.
22 | ///
23 | ///
24 | /// The .
25 | ///
26 | public static string Get(FileFormat fileFormat)
27 | {
28 | switch (fileFormat)
29 | {
30 | case FileFormat.Generic:
31 | // 20140101 000200;1.30111;1.309610;1.306350;1.306455;10
32 | return @"^(?\d{8}) (?