Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1749
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
Afternoon. I use this code to close all orders. But I noticed if there are a lot of them, not all are closed. What can I add to close all of them, even if not the first time. If possible, please give us an example.
https://www.mql5.com/ru/docs/common/sleep
Last question )
Whoever ported their EA from mql platform to windows or linux. Let me explain, once a long time ago wrote scripts for the mu online, that the game itself pumped the hero, while you sleep. So the question is who transferred the adviser, outside the platform? Kind of trades a person, not a robot.
Sorry if i did not explain it correctly )
Last question )
Whoever ported their EA from mql platform to windows or linux. Let me explain, once a long time ago wrote scripts for the mu online, that the game itself pumped the hero, while you sleep. So the question is, maybe who transferred the adviser, outside the platform? Kind of trades a person, not a robot.
If that was not explained correctly, sorry )
on a Windows server (VDS or VPS) is placed MetaTrader, in it the Expert Advisor is running. That is all: The soldier sleeps, the service goes :-)
The trading platform is algorithmic and designed for robot's active participation, if not entirely by a robot.
Although, clickers (software that "clicks" in the buttons emulating a human) someone uses. And freelancers are periodically requested and there are those for sale on the Internet.
hello!
Can someone meet an EA or a piece of code (to include in the code of the owl), to change the SL TP for the next order?
Say the order was opened with 0.01 SL= 30 TP=100
the next order opened with 0.02SL= 30 TP=95
etc.
What function should I use to describe this?
This is how mySL TP is currently being assigned:
Gentlemen professionals, please advise, I can't think of anything (I've just started to learn programming).
Here is a part of an Expert Advisor, it doesn't matter which one. In OnInit() function there are two return operators.
I can't get the numbers -1 and 0 in brackets, where do they come from and where does the aborted program return?
//| Expert initialization function |
I can't get the numbers -1 and 0 in brackets, where do they come from and where does the aborted program return to?
https://www.mql5.com/ru/docs/event_handlers/oninit
Read on. Zero is a success and the program will continue running. The other numbers are the end of the job.
https://www.mql5.com/ru/docs/event_handlers/oninit
Read on. Zero is a success and the programme continues. The other numbers are the end of the job.
The task of checking symbol charts for missing bars
I cannot find a solution to this problem
I need to write the script according to the following principle: Print(date), Print(date), Print(date) if there is a bar gap
For example, the script should be 48 bars on M30 chart andPrint(date) if there is a gap of 47 bars.
How to write it? A cross-platform solution is desirable.
P.S. This should be done on all available history.
Vitaly, how do you estimate the bar pass? 48 bars a day? Sometimes work stops at 11 p.m., sometimes it starts at 2. If you look at the ruble, there is no trading there at night.
If it is strictly 24 hours 5 days a week, then we will try each bar in order with check of the sequence. But then there will be signals about missed bars, which should not exist.
For example, the script should be 48 bars on M30 chart andPrint(date) if there is a gap of 47 bars.
How to write it? A cross-platform solution is desirable.
P.S. This should be done on all available history.
There is a similar task - to make a timeframe with missed bars. That is, for example, to have exactly 1440 minutes in a day. It doesn't matter if some of them are empty.
nothing quick, neat and beautiful came up with :-( Only to form an array at the beginning of day, count elapsed minutes from 0:00 and fill in this way.
And the fact of missing minutes can be checked by comparing iBars(current_time,0:01 of current day) and (current_time_beginning of day)/PERIOD_SECONDS...