Compilation errors
-
For the last 2 days I get this error:
Compilation errors
'PERIOD_CURRENT' - struct member undefinedIt started to nights ago around 11 PM EST, about an hour later it stopped.
Got the error again last night around the same time...waited and it stopped.
Getting the error now.I can open other projects that compiled previously with error and now gets the same error.
Doesn't error when saving as .mq4Anybody experiencing the same?
-
The error started hours ago

-
Determined that the error happens with default MT4 Indicators loaded in fxDreema. This is a huge issue! The suggestion to use CurrentTimeframe() function will not work. FxDreema needs to fix the compiler.
-
@FXTraderCon No, that doesn't work either
-
Definitely something with the compiler:
Code before error:
public: /* Constructor /
MDLIC_indicators_iEnvelopes()
{
MAperiod = (int)14;
MAshift = (int)0;
MAmethod = (ENUM_MA_METHOD)MODE_SMA;
Deviation = (double)0.1;
AppliedPrice = (ENUM_APPLIED_PRICE)PRICE_CLOSE;
Mode = (int)1;
Symbol = (string)CurrentSymbol();
Period = (ENUM_TIMEFRAMES)CurrentTimeframe();
Shift = (int)0;
}
Code now:
public: / Constructor */
MDLIC_indicators_iEnvelopes()
{
MAperiod = (int)14;
MAshift = (int)0;
MAmethod = (ENUM_MA_METHOD)MODE_SMA;
Deviation = (double)0.1;
AppliedPrice = (ENUM_APPLIED_PRICE)PRICE_CLOSE;
Mode = (int)1;
Symbol = (string)CurrentSymbol();
Period = (ENUM_TIMEFRAMES)c::PERIOD_CURRENT;
Shift = (int)0;
}Envelopes Indicator is a default in MT4 and fxDreema. Seems to be a fxDreema issue.
-
My Indicators do not have any issues. Looks like the default indicators are affected:

-
Workaround until fxDreema fix is to save to .mq4 >> Open in MT4 IDE >> find and replace "CURRENT_PERIOD" to "CurrentTimeframe()"
A lot of steps, but I am dead in the water until the fix. -
-
@FXTraderCon Don't forget to press Compile in MT4 IDE

-
This very important problem has not been solved yet! Is it because of the holiday? Haven't the admin noticed this important bug through messages yet?!

- list item
-
@FXTraderCon just (c::) must deleted
-
@hojjat2002 The code comparison seen below shows how it should be coded based on another project that fxDreema compiled and works. Should be CurrentTimeframe().
-
Viola! And it is fixed...for now.
-
This is how it worked for me

