This project is read-only.

I find some bugs.

Dec 30, 2012 at 5:36 AM

1. in the namespace TradePlatform.MT4.SDK.API , the Constants folder missing PRICE_FIELD's define, that should be: 

 

    public enum PRICE_FIELD : int
    {
        LOW_HIGH = 0,
        CLOSE_CLOSE = 1
    }

 

 

2.  the iStochastic method in TechnicalIndicators should be:(the parameter APPLY_PRICE should change to PRICE_FIELD)

 

  public static double iStochastic(this MqlHandler handler, string symbol, TIME_FRAME timeframe, int Kperiod, int Dperiod, int slowing, MA_METHOD method, PRICE_FIELD 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);
        }

 

PS: Sorry for my bad english, hope all of you can understood.