Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 534
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
Maybe so:
The point is that if you set the time interval as in the Expert Advisor
I need to exclude the candlesticks that are in the interval from the calculations.
In the indicator you work in a loop. So why do you need to exit the loop?
Don't you know how to skip an iteration in the loop?
continue
Where is the condition for the previous day? It turns out that after the first order in the 0-8 period, the step will already be 10. And we need that it was 5. And only after 8 o'clock it will become 10. Then we return step =5 to 0 if there are no open orders from the previous day. If the series continues, then step =10 before its close.
The function should return тру, if there is an order opened yesterday
In the indicator you are working in a loop. So why do you need to exit the loop with return?
Do you know how to skip an iteration in a loop?
continue
Thank you. I don't get it, I limited the time but the print shows the time at 19:30 and 23:00 and 5:50, what's wrong?
Thank you. I don't understand, the print shows the time as 19:30 and 23:00 and 5:50 what's wrong?
The function should return тру, if there is an order opened yesterday
It's a bit complicated for me. Could you explain in which part of the code to add and what does it mean mn and mag_n? where should I put my EA medjic here?
Gentlemen, please help me to understand the error. minPrice = NormalizeDouble (GetMinPrice(),Digits); Error: 'minPrice' - semicolon expected.
Look at the code before minPrice. There is no ; (semicolon) there.
Look at the code before minPrice. There is no ; (semicolon) there.
int start()
{
minPrice = NormalizeDouble (GetMinPrice()Digits);
maxPrice = NormalizeDouble(GetMaxPrice()Digits); Can int start be followed by (;) ?
int start()
{
minPrice = NormalizeDouble(GetMinPrice()Digits);
maxPrice = NormalizeDouble(GetMaxPrice()Digits); Can int start be followed by (;) ?
{
minPrice = NormalizeDouble (GetMinPrice(),Digits);
maxPrice = NormalizeDouble(GetMaxPrice(),Digits);