Added function CopyRates. Implemented Backtesting

This commit is contained in:
DW
2016-07-25 16:49:15 +03:00
parent edc14d6c97
commit e312f52b74
14 changed files with 485 additions and 75 deletions
+27 -10
View File
@@ -1,14 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MtApi
namespace MtApi
{
class MtTypes
{
}
public enum ENUM_TERMINAL_INFO_STRING
{
TERMINAL_LANGUAGE = 13,
@@ -27,4 +18,30 @@ namespace MtApi
SYMBOL_DESCRIPTION = 20,
SYMBOL_PATH = 21
}
public enum ENUM_TIMEFRAMES
{
PERIOD_CURRENT = 0,
PERIOD_M1 = 1,
PERIOD_M2 = 2,
PERIOD_M3 = 3,
PERIOD_M4 = 4,
PERIOD_M5 = 5,
PERIOD_M6 = 6,
PERIOD_M10 = 10,
PERIOD_M12 = 12,
PERIOD_M15 = 15,
PERIOD_M20 = 20,
PERIOD_M30 = 30,
PERIOD_H1 = 60,
PERIOD_H2 = 120,
PERIOD_H3 = 180,
PERIOD_H4 = 240,
PERIOD_H6 = 360,
PERIOD_H8 = 480,
PERIOD_H12 = 720,
PERIOD_D1 = 1440,
PERIOD_W1 = 10080,
PERIOD_MN1 = 43200
}
}