Questions from Beginners MQL4 MT4 MetaTrader 4 - page 223
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
I try to fill the indicator buffer from the other end (ArraySetAsSeries (..., false)), everything works fine for a while, but then something happens to the buffer and the very last array index is filled, though it should not be.
I guess, the terminal clips the buffer at some moment and the weight of the buffer is filled even with the last array index. Perhaps, the array buffer should be released at some moment, but when? Can you correct the test example?
Hello.
Can you please tell me why this indicator rarely draws arrows on the history, but when you start trading it starts drawing often.
Then if you close MT4 and open it again, then in the same place where in real time the indicator like a machine gun drew deals, it is again 1-2 deals.
When I look at the history it seems that the indicator should trade well, but as soon as I switch to real-time trading I get all sorts of weird stuff.
Please explain why? Here is the code of indicator:
try replacing 0 with 1 in three places
try replacing 0 with 1 in three places
I'd also move this
try replacing 0 with 1 in three places
Thank you very much. Now how do I get it to open trades only at the end of the current candle on the current timeframe? :)) I don't know when it opens deals now... The arrows seem to be right, and look at the candlesticks, everything is ok, but deals appear to be opened in the middle or near the end of the candle, in general, everywhere, but not where it is needed. :(
In general, it is customary to open trades at the moment a new candle is formed, when there is already all the information about the candle that has just been closed
I'd also move this.
Are you sure that's where you were shown?
In general, it is customary to open trades at the moment a new candle is formed, when all the information about the candle that has just closed is already in place
Vitaly, I've noticed that people will write a question and go about their business, while we have fun with each other. Sometimes there are several pages of excerpts.