2017.03.24 15:21:56.659 111 (AUDUSD,M15) Client 'MetaTrader 5 Demo' compte #5477214 demo ouvert avec 'MetaQuotes Software Corp.' sur le serveur 'MetaQuotes-Demo' 2017.03.24 15:21:56.659,111 (AUDUSD,M15) La devise du compte est le USD, le niveau de MarginCall et StopOut est fixé en pourcentage 2017.03.24 15:21:56659 111 (AUDUSD,M15) MarginCall niveau=50, StopOut niveau=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 |//+------------------------------------------------------------------+intOnInit()
{
//--- create timerEventSetTimer(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)
{
caseACCOUNT_TRADE_MODE_DEMO:
trade_mode="demo";
break;
caseACCOUNT_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 |//+------------------------------------------------------------------+voidOnDeinit(constint reason)
{
//--- destroy timerEventKillTimer();
}
//+------------------------------------------------------------------+//| Expert tick function |//+------------------------------------------------------------------+voidOnTick()
{
//---
}
//+------------------------------------------------------------------+//| Timer function |//+------------------------------------------------------------------+voidOnTimer()
{
//---
}
//+------------------------------------------------------------------+//| Trade function |//+------------------------------------------------------------------+voidOnTrade()
{
//---
}
//+------------------------------------------------------------------+//| TradeTransaction function |//+------------------------------------------------------------------+voidOnTradeTransaction(constMqlTradeTransaction& trans,
constMqlTradeRequest& request,
constMqlTradeResult& result)
{
//---
}
//+------------------------------------------------------------------+//| Tester function |//+------------------------------------------------------------------+doubleOnTester()
{
//---double ret=0.0;
//---//---return(ret);
}
//+------------------------------------------------------------------+//| TesterInit function |//+------------------------------------------------------------------+voidOnTesterInit()
{
//---
}
//+------------------------------------------------------------------+//| TesterPass function |//+------------------------------------------------------------------+voidOnTesterPass()
{
//---
}
//+------------------------------------------------------------------+//| TesterDeinit function |//+------------------------------------------------------------------+voidOnTesterDeinit()
{
//---
}
//+------------------------------------------------------------------+//| ChartEvent function |//+------------------------------------------------------------------+voidOnChartEvent(constint id,
constlong &lparam,
constdouble &dparam,
conststring &sparam)
{
//---
}
//+------------------------------------------------------------------+//| BookEvent function |//+------------------------------------------------------------------+voidOnBookEvent(conststring &symbol)
{
//---
}
//+------------------------------------------------------------------+
Yuriy Zaytsev: Propre machine 24/7, j'ai encore VPS de MQ, qui est très fiable, incroyablement rapide - comme SHANHAI BARS ! avec le prix de quelques 10$ par mois
Si quelqu'un ne se sent pas désolé pour la source - je peux mettre sur ma machine !
1:100 tous
printf("ACCOUNT_LEVERAGE = %d",AccountInfoInteger(ACCOUNT_LEVERAGE));
2017.03.24 15:21:56.659 111 (AUDUSD,M15) Client 'MetaTrader 5 Demo' compte #5477214 demo ouvert avec 'MetaQuotes Software Corp.' sur le serveur 'MetaQuotes-Demo'
2017.03.24 15:21:56.659,111 (AUDUSD,M15) La devise du compte est le USD, le niveau de MarginCall et StopOut est fixé en pourcentage
2017.03.24 15:21:56659 111 (AUDUSD,M15) MarginCall niveau=50, StopOut niveau=30
2017.03.24 15:21:56.659 111 (AUDUSD,M15) ACCOUNT_LEVERAGE = 100
J'ai créé un compte mt4, vous avez tous des comptes mt5.
Je pense que dans un championnat comme celui-ci, ça n'a pas vraiment d'importance.
Non, pas du tout. Désolé.
Peut-être que quelqu'un a un vps inactif ?
Qui a un vps non-MQ ?
Peut-être que quelqu'un a un vps inactif ?
Qui a un vps non-MQ ?
Propre machine 24/7, j'ai encore VPS de MQ, qui est très fiable, incroyablement rapide - comme SHANHAI BARS ! avec le prix de quelques 10$ par mois
Je pense que dans un championnat comme celui-ci, ce n'est pas crucial.
Ça n'a pas d'importance.
Si quelqu'un s'intéresse au code source, je peux le mettre sur ma machine !
Pourquoi ne pas faire confiance à la source ? .ex4-5 ?
Pourquoi ne pas faire confiance à la source ? .ex4-5 ?
:-))))) nnuu - question intéressante - pas de problème EX(4/5)