示例#1
0
        /// <summary>
        ///     Calculates the Movement directional index and returns its value.
        /// </summary>
        /// <param name="handler"></param>
        /// <param name="symbol"></param>
        /// <param name="timeframe"></param>
        /// <param name="period"></param>
        /// <param name="appliedApplyPrice"></param>
        /// <param name="mode"></param>
        /// <param name="shift"></param>
        /// <returns></returns>
        public static double iADX(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int period,
                                  APPLY_PRICE appliedApplyPrice, ADX_MODE mode, int shift)
        {
            string retrunValue = handler.CallMqlMethod("iADX", symbol, ((int)timeframe), period,
                                                       ((int)appliedApplyPrice), ((int)mode), shift);

            return(Convertor.ToDouble(retrunValue));
        }
 public static double iADX(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int period, APPLY_PRICE appliedApplyPrice, ADX_MODE mode, int shift)
 {
     return(Convertor.ToDouble(handler.CallMqlMethod("iADX", (object)symbol, (object)timeframe, (object)period, (object)appliedApplyPrice, (object)mode, (object)shift)));
 }
 public double iADX(MqlHandler handler, string symbol, TIME_FRAME timeframe, int period, APPLY_PRICE appliedApplyPrice, ADX_MODE mode, int shift)
 {
     string retrunValue = handler.CallMqlMethod("iADX", symbol, ((int)timeframe), period, ((int)appliedApplyPrice), ((int)mode), shift);
     return Convertor.ToDouble(retrunValue);
 }
 public static double iADX(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int period, APPLY_PRICE appliedApplyPrice, ADX_MODE mode, int shift)
 {
     return Convertor.ToDouble(handler.CallMqlMethod("iADX", (object) symbol, (object) timeframe, (object) period, (object) appliedApplyPrice, (object) mode, (object) shift));
 }