Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1571
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
MinL = Low[iLowest(NULL,0,MODE_CLOSE,period,i)];
MaxH = high[iHighest(NULL,0,MODE_CLOSE,period,i)];
MinL = low[iLowest(NULL,0,MODE_CLOSE,period,i)];
MaxH = high[iHighest(NULL,0,MODE_CLOSE,period,i)];
MinL = low[iLowest(NULL,0,MODE_CLOSE,period,i)];
thanks, but it doesn't work at all like in mql4
thanks, but it doesn't work the same way as in mql4
ArraySetSeries(high,true) is also needed there..default array indexing is different in mt5.
MaxH = high[iHighest(NULL,0,MODE_CLOSE,period,i)];
MinL = low[iLowest(NULL,0,MODE_CLOSE,period,i)];
Question about multicurrency:
There are several symbols, we need to get indicator data
Since a new candle opens on some symbols later than on the main symbol - we will not get the actual data for that symbol
We have added a check for time coincidence, and if the opening time coincides on all symbols - continue
The code works and performs its functions until we add a symbol with a limited session, for example, Index
then all code execution stops
--
The question is:
How to make code execution for those symbols with open session and not use with closed session.
Thanks!
Question about multicurrency:
There are several symbols, we need to get indicator data
Since a new candle opens on some symbols later than on the main symbol - we will not get the actual data for that symbol
We have added a check for time coincidence, and if the opening time coincides on all symbols - continue
The code works and performs its functions until we add a symbol with a limited session, for example, Index
then all code execution stops
--
The question is:
How to make the code execution for those symbols with open session, and not to use with closed session.
Thanks!
Check the market information for each symbol if it is not is session then exclude it..
https://www.mql5.com/en/docs/marketinformation
The question is:
How to make code execution for those characters that have an open session, and not to use with a closed session.
Thanks!
If sessions are not set in the specification or are set but not correctly, which happens often.
Then find the time of the last minute bar of yesterday and compare it with the time of the last minute bar of today.
If I have not mixed up anything (which is unlikely), then like this
S.F. Of course I'm confused)))) It is necessary to send the found time to the structure and then compare hours and minutes.
like this
It's monstrous and probably takes a long time, but I can't think of anything better.If sessions are not set in the specification or are set, but not correctly, which is often the case.
Then find the time of the last minute bar of yesterday and compare it with the time of the last minute bar of today.
If I have not mixed up anything (which is unlikely), then like this
S.F. Of course I am confused)))) It is necessary to send the found time to the structure and then compare hours and minutes.
This is possible.
Monstruous and probably long, but nothing better comes to mind.Thanks for your attention!
There's a bit of a problem: something extra
Thank you for your attention!
There is some problem: something extra
Yeah. It's the same as always. Something's wrong.
Thank you for your attention!
There is some problem: something extra
Yeah, it's the same as always. Nothing superfluous, it's just not right.