Issue #39: Added indicator functions on MQL side (MtApi MT5)

This commit is contained in:
DW
2018-01-10 19:13:31 +02:00
parent 1c57f88cb1
commit fefa451371
4 changed files with 1925 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@
iBullsPower = 98,
iCCI = 99,
iChaikin = 100,
iCustom = 101,
//iCustom = 101,
iDEMA = 102,
iDeMarker = 103,
iEnvelopes = 104,
+12
View File
@@ -1653,6 +1653,18 @@ namespace MtApi5
return SendCommand<int>(Mt5CommandType.iAC, commandParameters);
}
///<summary>
///The function returns the handle of the Accumulation/Distribution indicator.
///</summary>
///<param name="symbol">The symbol name of the security, the data of which should be used to calculate the indicator.</param>
///<param name="period">The value of the period can be one of the ENUM_TIMEFRAMES enumeration values, 0 means the current timeframe.</param>
///<param name="appliedVolume">The volume used. Can be any of ENUM_APPLIED_VOLUME values.</param>
public int iAD(string symbol, ENUM_TIMEFRAMES period, ENUM_APPLIED_VOLUME appliedVolume)
{
var commandParameters = new ArrayList { symbol, (int)period, (int)appliedVolume };
return SendCommand<int>(Mt5CommandType.iAD, commandParameters);
}
///<summary>
///The function returns the handle of the Average Directional Movement Index indicator.
///</summary>
BIN
View File
Binary file not shown.
+1912 -1
View File
File diff suppressed because it is too large Load Diff