[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 531
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
TimeCurrent()>=FindLastTime()+TimeOut
the cycle was written:But for some reason it does not work and does not return the time of the last order
Start()
{
static bool f=1;
if(f==1)
{
Alert("bid1=",Bid);
f=0;
Sleep(30000);
RefreshRates();
f=1;
Alert("bid2=",Bid);
}
}
I don't understand anything. Such code on the tester always gives the same bid1 and bid2, It cannot be the same price within 30 sec.
Sleep() doesn't work in the tester
Знатоки подскажите, пытаюсь сделать условие что бы проверялось сколько времени прошло с момента последнего закрытого ордера, что то типа
Но почему то не работает и не возвращает время последнего ордера
the variable type OrderCloseTime(); - datetimeChange the variable type declaration in the function
datetime order_time;
datetime itime=0;
Hello! I would like to learn programming in MQL4-5 but I don't know anything about it. Where to start? I would be very grateful to you if you could direct me along the path of least resistance. :)
Get a programming book and solve the easiest problems... in MQL... trade and graphical problems will be solved well after learning the basics of algorithmization.
берите задачник по программированию и решайте САМЫЕ ПРОСТЫЕ задачи... на MQL... торговые и графические задачи будут хорошо решаться после усвоения ОСНОВ алгоритмизации.
But you need a starting point, don't you? What's the basics of algorithmisation? Can you be more specific?Can you please tell me if it is possible to export quotes of financial instruments from MetaTrader to an external file (e.g. excel file).
I am used to do the analysis in excel.
Many thanks in advance.
But you need a starting point, don't you? What's the basics of algorithmisation? Can you be more specific?It's hard to give you specific advice. go through your textbook and documentation. go through the examples in your textbooks until you understand how it works... "it's like assembling an automaton... repeat, repeat, repeat, repeat, repeat, repeat, repeat....................."
Добрый день, друзья.
Подскажите, пожалуйста, можно ли выгрузить из MetaTrader'a котировки финансовых инструментов во внешний файл (например, в файл excel).
Привык проводить анализ в Excel.
Заранее большое спасибо.
F2, select instrument, timeframe and export button...