
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
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];