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
So, there is a function to determine the opening time of a bar (including if the bar is in the future)
The problem with Shift is that it now shifts not by the number of bars but by the number of days (it doesn't matter on D1 or D1; the main thing is to understand D1). So I think I got it in my head that I can check the number of daysTotal by shift (number of weekdays) and the current day of the week, but which formula to use - I can not determine.
Note: in Unit=3 try to do it (so far unsuccessful)
Help please.
1. Insert the code correctly (Ctrl+Alt+M).
2. Let's start with the fact that your request doesn't contain the mandatory field request.price (the absence of such a field is only acceptable for Market Execution mode). So it turns out that as long as request.price==0.the trade query gives error 10016 ("wrong stops"). What are they wrong?
In that they are not normalized. (use the SRC button to insert the code).
Checking the functionality of the automatic link insertion
1. Вставляйте код правильно (Ctrl+Alt+M).
1. Insert the code correctly (Ctrl+Alt+M).
2. Let's start with the fact that your request doesn't specify the mandatory field request.price (the absence of such a field is only allowed for Market Execution mode). So it turns out that as long as request.price==0.Thank you. Put the price in, it worked.
Please help me, I can't figure one thing out.
|9|8|7|6|5|4|3|2|1|0| <-- time series Rates
CopyRates(Symbol(),Period(),Time,2,Result);
For example I've specified time of candlestick #3. In this case, I get back the Rates of candlesticks #3 and #4. But how to get the rates of candlesticks #3 and #2, having an open time of candlestick #3. The negative number is not digested.
I had the idea of finding an index of sorts, but to do it I need to copy all elements from the current one, but, gosh, if I have M1 and a bar 10 years old, then the array is too big.
Thanks in advance
Good day!
Could you please explain in which units the traffic is measured in the "Services" tab of MetaTrader 5 Strategy Tester (MetaTester 5 Agents Managers build 712)? Is it measured in kiloBytes|megaBytes or kiloBytes|megaBytes?
Thank you.
Guys, can you tell me if there is an indicator or object in the base that allows you to display other currencies' charts on the main chart?
p.s. I wrote my own for mt4, but maybe there is a ready-made one here...
Guys, can you tell me if there is an indicator or object in the base that allows you to display other currencies' charts on the main chart?
p.s. I wrote my own for mt4, but maybe there is a ready-made one here...
Found it, it's already written, z**** , you don't have to write it yourself. https://www.mql5.com/ru/code/1055