Sparring en MetaQuotes-Cuentas demo - página 7

 
Server Muradasilov:

1:100 todo

printf("CUENTA_VERSA = %d",AccountInfoInteger(CUENTA_VERSA));

2017.03.24 15:21:56.659 111 (AUDUSD,M15) Cliente 'MetaTrader 5 Demo' cuenta #5477214 demo abierta con 'MetaQuotes Software Corp.' en 'MetaQuotes-Demo' servidor
2017.03.24 15:21:56.659,111 (AUDUSD,M15) La divisa de la cuenta es USD, el nivel de MarginCall y StopOut se establece en porcentaje
2017.03.24 15:21:56659 111 (AUDUSD,M15) MarginCall nivel=50, StopOut nivel=30
2017.03.24 15:21:56.659 111 (AUDUSD,M15) ACCOUNT_LEVERAGE = 100


//+------------------------------------------------------------------+
//|                                                          111.mq5 |
//|                        Copyright 2017, MetaQuotes Software Corp. |
//|                              https://www.mql5.com/ru/users/yuraz |
//+------------------------------------------------------------------+
#property copyright "Copyright 2017, MetaQuotes Software Corp."
#property link      "https://www.mql5.com/ru/users/yuraz"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- create timer
   EventSetTimer(60);
//--- имя компании 
   string company=AccountInfoString(ACCOUNT_COMPANY); 
//--- имя клиента 
   string name=AccountInfoString(ACCOUNT_NAME); 
//--- номер счета 
   long login=AccountInfoInteger(ACCOUNT_LOGIN); 
//--- имя сервера 
   string server=AccountInfoString(ACCOUNT_SERVER); 
//--- валюта счета 
   string currency=AccountInfoString(ACCOUNT_CURRENCY); 
//--- демо, конкурсный или реальный счет 
   ENUM_ACCOUNT_TRADE_MODE account_type=(ENUM_ACCOUNT_TRADE_MODE)AccountInfoInteger(ACCOUNT_TRADE_MODE); 
//--- теперь превратим значение перечисления в понятный вид 
   string trade_mode; 
   switch(account_type) 
     { 
      case  ACCOUNT_TRADE_MODE_DEMO: 
         trade_mode="demo"; 
         break; 
      case  ACCOUNT_TRADE_MODE_CONTEST: 
         trade_mode="конкурсный"; 
         break; 
      default: 
         trade_mode="реальный"; 
         break; 
     } 
//--- в процентах или в денежном выражении задается уровень Stop Out 
   ENUM_ACCOUNT_STOPOUT_MODE stop_out_mode=(ENUM_ACCOUNT_STOPOUT_MODE)AccountInfoInteger(ACCOUNT_MARGIN_SO_MODE); 
//--- получим значения уровней, при которых наступает Margin Call и Stop Out 
   double margin_call=AccountInfoDouble(ACCOUNT_MARGIN_SO_CALL); 
   double stop_out=AccountInfoDouble(ACCOUNT_MARGIN_SO_SO); 
//--- выведем краткую информацию по счету 
   PrintFormat("Счет клиента '%s' #%d %s открыт в '%s' на сервере '%s'", 
               name,login,trade_mode,company,server); 
   PrintFormat("Валюта счета - %s, уровень MarginCall и StopOut задается в %s", 
               currency,(stop_out_mode==ACCOUNT_STOPOUT_MODE_PERCENT)?"процентах":" в деньгах"); 
   PrintFormat("Уровень MarginCall=%G, уровень StopOut=%G",margin_call,stop_out); 
   
     printf("ACCOUNT_LEVERAGE =  %d",AccountInfoInteger(ACCOUNT_LEVERAGE)); 
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//--- destroy timer
   EventKillTimer();
      
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Timer function                                                   |
//+------------------------------------------------------------------+
void OnTimer()
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Trade function                                                   |
//+------------------------------------------------------------------+
void OnTrade()
  {
//---
   
  }
//+------------------------------------------------------------------+
//| TradeTransaction function                                        |
//+------------------------------------------------------------------+
void OnTradeTransaction(const MqlTradeTransaction& trans,
                        const MqlTradeRequest& request,
                        const MqlTradeResult& result)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Tester function                                                  |
//+------------------------------------------------------------------+
double OnTester()
  {
//---
   double ret=0.0;
//---

//---
   return(ret);
  }
//+------------------------------------------------------------------+
//| TesterInit function                                              |
//+------------------------------------------------------------------+
void OnTesterInit()
  {
//---
   
  }
//+------------------------------------------------------------------+
//| TesterPass function                                              |
//+------------------------------------------------------------------+
void OnTesterPass()
  {
//---
   
  }
//+------------------------------------------------------------------+
//| TesterDeinit function                                            |
//+------------------------------------------------------------------+
void OnTesterDeinit()
  {
//---
   
  }
//+------------------------------------------------------------------+
//| ChartEvent function                                              |
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
                  const long &lparam,
                  const double &dparam,
                  const string &sparam)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| BookEvent function                                               |
//+------------------------------------------------------------------+
void OnBookEvent(const string &symbol)
  {
//---
   
  }
//+------------------------------------------------------------------+
 
Participantes en el campeonato
Señales de Sparring, por favor no se suscriba a esta señal
Servidor Muradasilov es organizador y supervisor
https://www.mql5.com/ru/signals/282893
YURAZhttps://www.mql5.com/ru/signals/282872
Evgeny Belyaevhttps://www.mql5.com/ru/signals/283098
Andrey Dika la espera del registro










 
He creado una cuenta en mt4, todos tenéis cuentas en mt5.
 
Evgeny Belyaev:
He creado una cuenta en mt4, todos tenéis cuentas en mt5.

Creo que en un campeonato como éste, realmente no importa.

 
Vladimir Gribachev:


No, no es una opción en absoluto. Lo siento.


¿Tal vez alguien tiene un vps inactivo?

¿Quién tiene un vps sin MQ?

 
Evgeny Belyaev:


¿Tal vez alguien tiene un vps inactivo?

¿Quién tiene un vps sin MQ?

Mi máquina está 24/7, todavía tengo VPS de MQ que es muy fiable, impresionantemente rápido - ¡como SHANHAI BARS! con el precio de unos $10 al mes
 
Yuriy Zaytsev:
Máquina propia 24/7, todavía tengo VPS de MQ, que es muy fiable, increíblemente rápido - como SHANHAI BARS! con el precio de unos 10$ al mes
¡Si alguien no se compadece de la fuente - puedo poner en mi máquina!
 
Yuriy Zaytsev:

Creo que en un campeonato como éste, no es crucial.


No importa.
 
Yuriy Zaytsev:
Si a alguien le interesa el código fuente, ¡puedo ponerlo en mi máquina!

¿Por qué no confiar en la fuente? .ex4-5?
 
Evgeny Belyaev:

¿Por qué no confiar en la fuente? .ex4-5?

:-))))) nnuu - pregunta interesante - no hay problema EX(4/5)