mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 02:57:56 +00:00
Issue #39: Added indicator functions on MQL side (MtApi MT5)
This commit is contained in:
@@ -145,7 +145,7 @@
|
||||
iBullsPower = 98,
|
||||
iCCI = 99,
|
||||
iChaikin = 100,
|
||||
iCustom = 101,
|
||||
//iCustom = 101,
|
||||
iDEMA = 102,
|
||||
iDeMarker = 103,
|
||||
iEnvelopes = 104,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Binary file not shown.
+1912
-1
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user