MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
all I get is a weird 2123412.34 value, which ive included in the Screenshot (more wine glitch or not.png).
The value 2147483647 (shown in your screenshot) is EMPTY_VALUE.
You are getting it because there are no buffers in average.mq4, so you can't use iCustom.
Given that the correct values are shown in your comment, it suggests the problem is with your code not with Wine.
Any idea why its not displaying the correct value in the buffer field? Attached screenshot of missing value in buffer field
As you do more MQL coding, you'll find it invaluable to use the Experts log in the Terminal.
Your code has an "array out of range" error.
Can't thank you enough for your help. Ill have to use the forums more, this is priceless.
Issue completely resolved.
Can't thank you enough for your help.
I'm glad you got it sorted.
Now that it is working, there really is no need to use iCustom and a separate indicator.
Just splice that code directly into your EA.