Ejemplo n.º 1
0
 private HandlerProvider(MqlHandler mqlHandler, HandlerElement handlerElement, ExpertInfo expertInfo)
 {
   this._mqlHandler = mqlHandler;
   this._mqlHandler.CallMqlInternal = new Func<string, IEnumerable<string>, string>(this.OnCallMqlMethod);
   this.HandlerConfiguration = handlerElement;
   this.ExpertInfo = expertInfo;
 }
        public static void RunTests(MqlHandler script)
        {
            int ticket = script.OrderSend(SYMBOLS.EURUSD, ORDER_TYPE.OP_BUY, 0.1, script.Ask(), 3, 0, 0);
        
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderSend: " + ticket + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderSelect: " + script.OrderSelect(ticket, SELECT_BY.SELECT_BY_TICKET) + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderModify: " + script.OrderModify(ticket, script.OrderOpenPrice(), 0.1112, 2.3645) + "'"));

            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderClosePrice: " + script.OrderClosePrice() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderCloseTime: " + script.OrderCloseTime() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderComment: " + script.OrderComment() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderCommission: " + script.OrderCommission() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderExpiration: " + script.OrderExpiration() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderLots: " + script.OrderLots() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderMagicNumber: " + script.OrderMagicNumber() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderOpenPrice: " + script.OrderOpenPrice() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderOpenTime: " + script.OrderOpenTime() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderProfit: " + script.OrderProfit() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderStopLoss: " + script.OrderStopLoss() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderSwap: " + script.OrderSwap() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderSymbol: " + script.OrderSymbol() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderTakeProfit: " + script.OrderTakeProfit() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderTicket: " + script.OrderTicket() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderType: " + script.OrderType() + "'"));

            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrdersTotal: " + script.OrdersTotal() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'HistoryTotal: " + script.HistoryTotal() + "'"));

            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'OrderClose: " + script.OrderClose(ticket, 0.1, script.Bid(), 3) + "'"));

            // UNCOVERED BY TESTS : OrderPrint(), OrderCloseBy(...), OrderDelete(...) and Pending orders approach
        }
 public static void RunTests(MqlHandler script)
 {
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iAC: " + script.iAC(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iAD: " + script.iAD(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iAlligator: " + script.iAlligator(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 5, 5, 5, 5, 5, 5, MA_METHOD.MODE_EMA, APPLY_PRICE.PRICE_CLOSE, GATOR_MODE.MODE_GATORJAW, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iADX: " + script.iADX(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 9, APPLY_PRICE.PRICE_CLOSE, ADX_MODE.MODE_MAIN, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iATR: " + script.iATR(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 12, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iAO: " + script.iAO(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iBearsPower: " + script.iBearsPower(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 25, APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iBands: " + script.iBands(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, 2, 2, APPLY_PRICE.PRICE_CLOSE, BAND_MODE.MODE_LOWER, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iBullsPower: " + script.iBullsPower(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 23, APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iCCI: " + script.iCCI(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iDeMarker: " + script.iDeMarker(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iEnvelopes: " + script.iEnvelopes(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, MA_METHOD.MODE_EMA, 0, APPLY_PRICE.PRICE_CLOSE, 2, BAND_MODE.MODE_LOWER, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iForce: " + script.iForce(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 25, MA_METHOD.MODE_EMA, APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iFractals: " + script.iFractals(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, BAND_MODE.MODE_LOWER, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iGator: " + script.iGator(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, 0, 23, 0, 21, 0, MA_METHOD.MODE_EMA, APPLY_PRICE.PRICE_CLOSE, BAND_MODE.MODE_LOWER, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iIchimoku: " + script.iIchimoku(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 4, 2, 6,ICHIMOKU_MODE.MODE_CHINKOUSPAN, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iBWMFI: " + script.iBWMFI(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iMomentum: " + script.iMomentum(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iMFI: " + script.iMFI(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iMA: " + script.iMA(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 25, 0, MA_METHOD.MODE_EMA, APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iOsMA: " + script.iOsMA(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 22, 43,23,APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iMACD: " + script.iMACD(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 23, 23, 23,APPLY_PRICE.PRICE_CLOSE,MACD_MODE.MODE_MAIN, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iOBV: " + script.iOBV(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1,APPLY_PRICE.PRICE_CLOSE,  0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iSAR: " + script.iSAR(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 2, 3, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iRSI: " + script.iRSI(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 24, APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iRVI: " + script.iRVI(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1, 25, MACD_MODE.MODE_MAIN, 0)));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iStdDev: " + script.iStdDev(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1,23, 0, MA_METHOD.MODE_EMA,APPLY_PRICE.PRICE_CLOSE, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iStochastic: " + script.iStochastic(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1,23, 12, 2, MA_METHOD.MODE_EMA,APPLY_PRICE.PRICE_CLOSE, MACD_MODE.MODE_MAIN, 0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'iWPR: " + script.iWPR(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1,23, 0) + "'"));
 }
Ejemplo n.º 4
0
        public bool ModifyOffer(MqlHandler handler, int ticketNumber, double price, double stopLoss, double takeProfit)
        {
            var result = _tradingFunctionsWrapper.OrderModify(handler, ticketNumber, price, stopLoss, takeProfit);

            _log.DebugFormat("ModifyOrder. Handler Name={0}, TicketNumber={1}, Price={2}, StopLoss={3}, TakeProfit={4}", handler.GetType().Name, ticketNumber, price, stopLoss, takeProfit);
            _log.DebugFormat("ModifyOrder. Result={0}", result);
            return result;
        }
Ejemplo n.º 5
0
        public int OpenOffer(MqlHandler handler, string symbol, ORDER_TYPE orderType, double orderAmount, double price, int slippage, double stopLoss, double takeProfit)
        {
            var result = _tradingFunctionsWrapper.OrderSend(handler, symbol, orderType, orderAmount, price, slippage, stopLoss, takeProfit);

            _log.DebugFormat("Send offer. Symbol={0}, OrderType={1}, OrderAmount={2}, Price={3}, Slippage={4}, StopLoss={5}, TakeProfit={6}", symbol, orderType, orderAmount, price, slippage, stopLoss, takeProfit);
            _log.DebugFormat("Send offer. Result={0}", result);
            return result;
        }
Ejemplo n.º 6
0
        public static void RunTests(MqlHandler script)
        {
            script.Alert("Test Alert");
            script.Comment("Test Comment");

            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'GetTickCount: " + script.GetTickCount() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'MarketInfo: " + script.MarketInfo(SYMBOLS.EURUSD, MARKER_INFO_MODE.MODE_POINT) + "'"));

            script.PlaySound("connect.wav");
            script.Print("Test Print");

            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'SendNotification: " + script.SendNotification("Test Notification") + "'"));
        }
 public static void RunTests(MqlHandler script)
 {
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Ask: " + script.Ask() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Bars: " + script.Bars() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Bid: " + script.Bid() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Close: " + script.Close(0) + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Digits: " + script.Digits() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'High: " + script.High(0) + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Low: " + script.Low(0) + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Open: " + script.Open(0) + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Point: " + script.Point() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Time: " + script.Time(0) + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Volume: " + script.Volume() + "'"));
 }
 public static void RunTests(MqlHandler script)
 {
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Ask: " + script.Ask() + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Bars: " + script.Bars() + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Bid: " + script.Bid() + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Close: " + script.Close(0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Digits: " + script.Digits() + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'High: " + script.High(0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Low: " + script.Low(0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Open: " + script.Open(0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Point: " + script.Point() + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Time: " + script.Time(0) + "'"));
     Trace.Write(new TraceInfo(BridgeTraceErrorType.Debug, message: "Test 'Volume: " + script.Volume() + "'"));
 }
 public static void RunTests(MqlHandler script)
 {
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountBalance: " + script.AccountBalance() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountCredit: " + script.AccountCredit() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountCompany: " + script.AccountCompany() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountCurrency: " + script.AccountCurrency() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountEquity: " + script.AccountEquity() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountFreeMargin: " + script.AccountFreeMargin() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountFreeMarginCheck: " + script.AccountFreeMarginCheck("EURUSD", ORDER_TYPE.OP_BUY, 1) + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountFreeMarginMode: " + script.AccountFreeMarginMode() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountLeverage: " + script.AccountLeverage() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountMargin: " + script.AccountMargin() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountName: " + script.AccountName() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountNumber: " + script.AccountNumber() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountProfit: " + script.AccountProfit() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountServer: " + script.AccountServer() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountStopoutLevel: " + script.AccountStopoutLevel() + "'"));
     Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'AccountStopoutMode: " + script.AccountStopoutMode() + "'"));
 }
        public static void RunTests(MqlHandler script)
        {
            script.HideTestIndicators(false);
            script.WindowRedraw();

            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'Period: " + script.Period() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'RefreshRates: " + script.RefreshRates() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowBarsPerChart: " + script.WindowBarsPerChart() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowExpertName: " + script.WindowExpertName() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowFind: " + script.WindowFind("Test") + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowFirstVisibleBar: " + script.WindowFirstVisibleBar() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowHandle: " + script.WindowHandle(SYMBOLS.EURUSD, TIME_FRAME.PERIOD_H1) + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowIsVisible: " + script.WindowIsVisible(0) + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowOnDropped: " + script.WindowOnDropped() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowPriceMax: " + script.WindowPriceMax() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowPriceMin: " + script.WindowPriceMin() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowPriceOnDropped: " + script.WindowPriceOnDropped() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowScreenShot: " + script.WindowScreenShot("test.bmp", 200, 200) + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowTimeOnDropped: " + script.WindowTimeOnDropped() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowsTotal: " + script.WindowsTotal() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowXOnDropped: " + script.WindowXOnDropped() + "'"));
            Trace.Write(new LogInfo(LogType.Notifications, message: "Test 'WindowYOnDropped: " + script.WindowYOnDropped() + "'"));
        }
Ejemplo n.º 11
0
 public double WindowPriceMin(MqlHandler handler, int index = 0)
 {
     string retrunValue = handler.CallMqlMethod("WindowPriceMin", index);
     return Convertor.ToDouble(retrunValue);
 }
Ejemplo n.º 12
0
 public bool WindowIsVisible(MqlHandler handler, int index)
 {
     string retrunValue = handler.CallMqlMethod("WindowIsVisible", index);
     return Convertor.ToBoolean(retrunValue);
 }
Ejemplo n.º 13
0
 public int WindowOnDropped(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowOnDropped");
     return Convertor.ToInt(retrunValue);
 }
Ejemplo n.º 14
0
 public int WindowFirstVisibleBar(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowFirstVisibleBar");
     return Convertor.ToInt(retrunValue);
 }
Ejemplo n.º 15
0
 public int WindowHandle(MqlHandler handler, string symbol, TIME_FRAME timeframe)
 {
     string retrunValue = handler.CallMqlMethod("WindowHandle", symbol, ((int)timeframe));
     return Convertor.ToInt(retrunValue);
 }
 public  double AccountProfit(MqlHandler handler)
 {
     string returnValue = handler.CallMqlMethod("AccountProfit", null);
     return Convertor.ToDouble(returnValue);
 }
Ejemplo n.º 17
0
 public bool WindowScreenShot(MqlHandler handler, string filename, int size_x, int size_y, int start_bar = -1, int chart_scale = -1, int chart_mode = -1)
 {
     string retrunValue = handler.CallMqlMethod("WindowScreenShot", filename, size_x, size_y, start_bar, chart_scale, chart_mode);
     return Convertor.ToBoolean(retrunValue);
 }
Ejemplo n.º 18
0
 public string Symbol(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("Symbol");
     return retrunValue;
 }
Ejemplo n.º 19
0
 public int WindowBarsPerChart(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowBarsPerChart");
     return Convertor.ToInt(retrunValue);
 }
 public  string AccountServer(MqlHandler handler)
 {
     string returnValue = handler.CallMqlMethod("AccountServer", null);
     return returnValue;
 }
Ejemplo n.º 21
0
 public bool RefreshRates(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("RefreshRates");
     return Convertor.ToBoolean(retrunValue);
 }
Ejemplo n.º 22
0
 public void HideTestIndicators(MqlHandler handler, bool hide)
 {
     string retrunValue = handler.CallMqlMethod("HideTestIndicators", hide ? 1 : 0);
 }
Ejemplo n.º 23
0
 public int WindowsTotal(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowsTotal");
     return Convertor.ToInt(retrunValue);
 }
Ejemplo n.º 24
0
 public DateTime WindowTimeOnDropped(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowTimeOnDropped");
     return Convertor.ToDateTime(retrunValue);
 }
Ejemplo n.º 25
0
 public double WindowPriceOnDropped(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowPriceOnDropped");
     return Convertor.ToDouble(retrunValue);
 }
Ejemplo n.º 26
0
 public string WindowExpertName(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowExpertName");
     return retrunValue;
 }
Ejemplo n.º 27
0
 public void WindowRedraw(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("WindowRedraw");
 }
Ejemplo n.º 28
0
 public int WindowFind(MqlHandler handler, string name)
 {
     string retrunValue = handler.CallMqlMethod("WindowFind", name);
     return Convertor.ToInt(retrunValue);
 }
Ejemplo n.º 29
0
 public int Period(MqlHandler handler)
 {
     string retrunValue = handler.CallMqlMethod("Period");
     return Convertor.ToInt(retrunValue);
 }
 public  int AccountStopoutMode(MqlHandler handler)
 {
     string returnValue = handler.CallMqlMethod("AccountStopoutMode", null);
     return Convertor.ToInt(returnValue);
 }