コード例 #1
0
        /// <summary>
        ///     Calculates the Relative Vigor index and returns its value.
        /// </summary>
        /// <param name="handler"></param>
        /// <param name="symbol"></param>
        /// <param name="timeframe"></param>
        /// <param name="period"></param>
        /// <param name="mode"></param>
        /// <param name="shift"></param>
        /// <returns></returns>
        public static double iRVI(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int period,
                                  MACD_MODE mode, int shift)
        {
            string retrunValue = handler.CallMqlMethod("iRVI", symbol, ((int)timeframe), period, ((int)mode), shift);

            return(Convertor.ToDouble(retrunValue));
        }
コード例 #2
0
        /// <summary>
        ///     Calculates the Stochastic oscillator and returns its value.
        /// </summary>
        /// <param name="handler"></param>
        /// <param name="symbol"></param>
        /// <param name="timeframe"></param>
        /// <param name="Kperiod"></param>
        /// <param name="Dperiod"></param>
        /// <param name="slowing"></param>
        /// <param name="method"></param>
        /// <param name="applyPriceField"></param>
        /// <param name="mode"></param>
        /// <param name="shift"></param>
        /// <returns></returns>
        public static double iStochastic(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int Kperiod,
                                         int Dperiod, int slowing, MA_METHOD method, APPLY_PRICE applyPriceField,
                                         MACD_MODE mode, int shift)
        {
            string retrunValue = handler.CallMqlMethod("iStochastic", symbol, ((int)timeframe), Kperiod, Dperiod,
                                                       slowing, ((int)method), applyPriceField, ((int)mode), shift);

            return(Convertor.ToDouble(retrunValue));
        }
コード例 #3
0
 public static double iStochastic(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int Kperiod, int Dperiod, int slowing, MA_METHOD method, APPLY_PRICE applyPriceField, MACD_MODE mode, int shift)
 {
     return(Convertor.ToDouble(handler.CallMqlMethod("iStochastic", (object)symbol, (object)timeframe, (object)Kperiod, (object)Dperiod, (object)slowing, (object)method, (object)applyPriceField, (object)mode, (object)shift)));
 }
コード例 #4
0
 public static double iRVI(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int period, MACD_MODE mode, int shift)
 {
     return(Convertor.ToDouble(handler.CallMqlMethod("iRVI", (object)symbol, (object)timeframe, (object)period, (object)mode, (object)shift)));
 }
コード例 #5
0
 public static double iMACD(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int fast_ema_period, int slow_ema_period, int signal_period, APPLY_PRICE appliedApplyPrice, MACD_MODE mode, int shift)
 {
     return(Convertor.ToDouble(handler.CallMqlMethod("iMACD", (object)symbol, (object)timeframe, (object)fast_ema_period, (object)slow_ema_period, (object)signal_period, (object)appliedApplyPrice, (object)mode, (object)shift)));
 }
コード例 #6
0
        /// <summary>
        /// Calculates the Moving averages convergence/divergence and returns its value.
        /// </summary>
        /// <param name="handler"></param>
        /// <param name="symbol"></param>
        /// <param name="timeframe"></param>
        /// <param name="fast_ema_period"></param>
        /// <param name="slow_ema_period"></param>
        /// <param name="signal_period"></param>
        /// <param name="appliedApplyPrice"></param>
        /// <param name="mode"></param>
        /// <param name="shift"></param>
        /// <returns></returns>
        public static double iMACD(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int fast_ema_period, int slow_ema_period, int signal_period, APPLY_PRICE appliedApplyPrice, MACD_MODE mode, int shift)
        {
            string retrunValue = handler.CallMqlMethod("iMACD", symbol, ((int)timeframe), fast_ema_period, slow_ema_period, signal_period, ((int)appliedApplyPrice), ((int)mode), shift);

            return(Convertor.ToDouble(retrunValue));
        }
コード例 #7
0
 public double iStochastic(MqlHandler handler, string symbol, TIME_FRAME timeframe, int Kperiod, int Dperiod, int slowing, MA_METHOD method, APPLY_PRICE applyPriceField, MACD_MODE mode, int shift)
 {
     string retrunValue = handler.CallMqlMethod("iStochastic", symbol, ((int)timeframe), Kperiod, Dperiod, slowing, ((int)method), applyPriceField, ((int)mode), shift);
     return Convertor.ToDouble(retrunValue);
 }
コード例 #8
0
 public double iRVI(MqlHandler handler, string symbol, TIME_FRAME timeframe, int period, MACD_MODE mode, int shift)
 {
     string retrunValue = handler.CallMqlMethod("iRVI", symbol, ((int)timeframe), period, ((int)mode), shift);
     return Convertor.ToDouble(retrunValue);
 }
コード例 #9
0
 public double iMACD(MqlHandler handler, string symbol, TIME_FRAME timeframe, int fast_ema_period, int slow_ema_period, int signal_period, APPLY_PRICE appliedApplyPrice, MACD_MODE mode, int shift)
 {
     string retrunValue = handler.CallMqlMethod("iMACD", symbol, ((int)timeframe), fast_ema_period, slow_ema_period, signal_period, ((int)appliedApplyPrice), ((int)mode), shift);
     return Convertor.ToDouble(retrunValue);
 }
コード例 #10
0
 public static double iStochastic(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int Kperiod, int Dperiod, int slowing, MA_METHOD method, APPLY_PRICE applyPriceField, MACD_MODE mode, int shift)
 {
     return Convertor.ToDouble(handler.CallMqlMethod("iStochastic", (object) symbol, (object) timeframe, (object) Kperiod, (object) Dperiod, (object) slowing, (object) method, (object) applyPriceField, (object) mode, (object) shift));
 }
コード例 #11
0
 public static double iRVI(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int period, MACD_MODE mode, int shift)
 {
     return Convertor.ToDouble(handler.CallMqlMethod("iRVI", (object) symbol, (object) timeframe, (object) period, (object) mode, (object) shift));
 }
コード例 #12
0
 public static double iMACD(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int fast_ema_period, int slow_ema_period, int signal_period, APPLY_PRICE appliedApplyPrice, MACD_MODE mode, int shift)
 {
     return Convertor.ToDouble(handler.CallMqlMethod("iMACD", (object) symbol, (object) timeframe, (object) fast_ema_period, (object) slow_ema_period, (object) signal_period, (object) appliedApplyPrice, (object) mode, (object) shift));
 }