Finally done with my first code ever written and after a week of work, it finally does everything I wanted it to.. many many thanks for your help! Should we not talk again in the next days, merry Christmas!
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.
Finally done with my first code ever written and after a week of work, it finally does everything I wanted it to.. many many thanks for your help! Should we not talk again in the next days, merry Christmas!
If you are interested, here's the final code.
Thanks for posting the result!
But are you sure PostMessageA() is working? We had to replace all the Windows'-..A()-functions (ASCII) by ..W()-functions (Wide, ANSI)?
PERIOD_H1, PERIOD_H4, PERIOD_D1,
PERIOD_W1, PERIOD_MN1};
:
string Period_ID = 0;
switch(Periods[M])
{
case PERIOD_MN1: Period_ID = "MN1"; break;
case PERIOD_W1: Period_ID = "W1"; break;
case PERIOD_D1: Period_ID = "D1"; break;
case PERIOD_H4: Period_ID = "H4"; break;
case PERIOD_H1: Period_ID = "H1"; break;
case PERIOD_M30: Period_ID = "M30"; break;
case PERIOD_M15: Period_ID = "M15"; break;
case PERIOD_M5: Period_ID = "M5"; break;
}
PERIOD_H1, PERIOD_H4, PERIOD_D1,
PERIOD_W1, PERIOD_MN1};
string PeriodsToText[] = {"M5", "M15", "M30",
"H1", "H4", "D1",
"W1", "MN1"};
:
string Period_ID = PeriodsToText[M];