Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1665
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
If you do it through an array, then check only the tickets of modified orders written into it against all the other ones.
If there is no error check when modifying, how can we be sure that the order has changed?
And if there is an error check, what is the point of the array?
Makar has inserted code into the EA so far only to compare profit in currency and profit in pips as far as I understand it can be understood when these functions have zero values
Can you tell me how to write a condition?
If a monthly/weekly/4-hourly candle has closed...
When the current chart is different.
Can you tell me how to write a condition?
If a monthly/weekly/4-hourly candle has closed...
When the current chart is different.
MakarFX, on that screenshot, which I attached, tested on EUR / USD - M 30 - all ticks - 01.08.21 to 03.09.21 - 26 orders were ( but I changed the constant from 4 to 8, I decided to look at a larger number of candles)
If we return the constant to 4 candlesticks then for the same period - then 35 orders, but the first order also comes in 2 orders earlier
Artem, I checked on the indicator readings and the opening is correct, but visually it shows differently...very strange
Try other days start and compare readings.
It's not clear what you need...
For example, a working M5 chart.
How to write "if H1 candle closed above/below the bar..." in the trade opening condition?
Here, for example, how to write:That is, while in indicators you can specify the TF in function parameters, the bar / candlestick parameters do not seem to have any indication of the TF. It is only index of the serial number of the candle (Close[0]). I need something like Close(NULL,60...) if it exists)))
"If the swing1 on M15 is higher than the swing2 on M15 and the stochastic on M15 is below 20 and the hourly candle closed below the previous hourly candle..."
Makar has inserted code into the Expert Advisor so far only to compare profit in currency and profit in pips as far as I understand it can be understood when these functions have zero values
That's right, just correct it in the comments
and it's not clear what it's for...
For example, a working M5 chart.
How to write "If H1 candle closed above/below the bar..." in the trade opening condition?
That is, while in indicators you can specify the TF in function parameters, the bar / candlestick parameters do not seem to have any indication of the TF. They only have the index of the serial number of the candle (Close[0]). I need something like Close(NULL,60...) if it exists)))
Here's how to prescribe:
"If M15 wristband1 is higher than M15 wristband2 and the stochastic on M15 is below 20 and the hourly candle has closed below the previous hourly candle...".
Thank you very much!
I must have missed this feature in the handbook