Hi @fxsaber the main issue I was having was with the wrapper at the Windows level, not EA level, but the code you shared will help me in a different ways (to identify the path to store generated reports) so thank you :D
Dears i would highly appreciate if someone can help me, I'm facing an issue with my mt4 platform as it keeps updating every few days and is causing my EA working properly, yesterday i had build 1374 and today is 1375, could you please check if this issue arises from my broker . many thanks
@delaram#: Dears i would highly appreciate if someone can help me, I'm facing an issue with my mt4 platform as it keeps updating every few days and is causing my EA working properly, yesterday i had build 1374 and today is 1375, could you please check if this issue arises from my broker . many thanks
Then don't connect to MetaQuotes demo trade servers because they are for beta testing and will update your terminal with beta builds.
Use only reputable broker demo accounts so as to only receive official releases.
EDIT: If however, you are getting these updates from your broker, then I would consider your broker as questionable, as reputable brokers don't push out beta builds unless they absolutely critical in nature.
#property show_inputs
inputint i;// Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.#property strictvoid Test()
{
double at[500];
PrintFormat("at[%d]",ArraySize(at)); // at[0]Print(at[10]); // array out of range in 'testscr.mq4' (10,13)ArraySetAsSeries(at,true);
double ma = iMAOnArray(at,0,10,0,MODE_EMA,1);
}
voidOnStart(){ Test(); }
Confirmed (build 1370). The array has zero size.
Commenting out the asSeries and onArray, it then has proper size.
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.
Then don't connect to MetaQuotes demo trade servers because they are for beta testing and will update your terminal with beta builds.
Use only reputable broker demo accounts so as to only receive official releases.
EDIT: If however, you are getting these updates from your broker, then I would consider your broker as questionable, as reputable brokers don't push out beta builds unless they absolutely critical in nature.
Forum on trading, automated trading systems and testing trading strategies
Array Out Of Range Problem, Why it related to Global scope variable declaration?
William Roeder, 2023.03.20 13:41