Project randomly wont compile - PERIOD_CURRENT Undeclared?
-
Randomly, yesterday my project decided not to build, I'm getting a compilation error for Period_current. So I downloaded the project file and tried to build it locally. I get the same error here.
I change the line to Period = (ENUM_TIMEFRAMES)CurrentTimeframe(); And it builds just fine. I then try to load that file back into FXDreema, and build it and I get the same error. Unsure why this is happening?
Has anyone experienced this before?
Forgot to mention, this is also happening on older projects that I have not edited in weeks or months. Still not building...


-
@fxDreema Did something change in the triple moving average model? Seems like the variable that's giving me trouble is defined inside that indicator constructor. I've never made a constant called PERIOD_CURRENT.
-
Is the project for MT5? I see mql5 projects are having more issues than usual lately in fxDreema.
-
Yes, it is an MT5 project. The issue is with the Tripple Moving average indicator - for some reason, the constructor is looking for a constant variable for the timeframe. I don't have any constants called PERIOD_CURRENT- and this error just popped up randomly on this project and all of the previous projects from the last 6 months that haven't been touched in months... I feel like something happened on the backend. @fxDreema
public: /* Constructor /
MDLIC_indicators_iTEMA()
{
MAperiod = (int)14;
MAshift = (int)0;
AppliedPrice = (ENUM_APPLIED_PRICE)PRICE_CLOSE;
Symbol = (string)CurrentSymbol();
Period = (ENUM_TIMEFRAMES)c::PERIOD_CURRENT; //////// This is where the error is being generated from. I don't have any constants called PERIOD_CURRENT
Shift = (int)0;
/ Static Parameters (initial value) */
digits = (int)SymbolInfoInteger(Symbol, SYMBOL_DIGITS);
} -
@roar Sorry to bug you, do you happen to have any thoughts on this? No idea how the constructor for a tripple moving average indicator could possibly get messed up such that it's looking for a constant that I've never declared?
-
https://fxdreema.com/shared/0pXpK1Cre
@cmuphyfx it seems to happen on a fresh project with only one condition with TEMA. So it is clearly some typo in the MDLIC_indicators_iTEMA class.
I cannot fix the source code of fxdreema itself (unfortunately lol), so there's little I can do here. Maybe just get a custom indicator that works the same way as the default TEMA in fxdreema.
-
Wow, thank you for checking into this for me! This project is 6 months old and it just stopped working last week. So, there must have been a backend update that broke this... @fxDreema can you help out here?
The good news is that I can just download the source file and build locally - it's a bit of a pain but not the end of the world. Thank you, @roar for your help!
-
Definitely the admin is touching the mql5 code here.
-
Do we have any idea who can help us (admin side) clear this up? Very annoying to have to download and build myself every time I make a change.
-
@cmuphyfx You can replace the default indicator with a custom indicator, then it compiles normally.
-
I am getting this error on MT4 EAs as well. All my past projects are affected from yesterday or so. I guess this is a bug.
-
@l-andorrà This problem has appeared on all my projects that were working properly since yesterday, and even a project with three blocks is not compiled in some indicators.

-
This problem has nothing to do with the work of the project and it can be seen in all three blocks, I suggest that friends who have more experience compile my example project, which is aimless, to understand the issue.[link text](1.mq4 link url)
-
That's a proof that the admin is touching the fxDreema's code. You should contact him to let him know.