Thanks L'andorra.
I solved the problem by changing the entries as follows:

Thanks L'andorra.
I solved the problem by changing the entries as follows:

Hi all,
I am trying to create two enum list with identical dropdown list but it is not compiling


https://fxdreema.com/shared/uQSDs1nAc
Any idea what I did wrong?
Thanks in advance for your help
Solved. I had ChatGPT write the following code:
When using ChatGPT or Deepseek to write code, mention that it will be used in fxdreema. These 2 AI robots know fxdreema and know how it works
// --- Parse all start and end times into total minutes ---
// Asian
int aStartHour = StringToInteger(StringSubstr(AsianStartTime, 0, 2));
int aStartMinute = StringToInteger(StringSubstr(AsianStartTime, 3, 2));
int aStartTotal = aStartHour * 60 + aStartMinute;
int aEndHour = StringToInteger(StringSubstr(AsianEndTime, 0, 2));
int aEndMinute = StringToInteger(StringSubstr(AsianEndTime, 3, 2));
int aEndTotal = aEndHour * 60 + aEndMinute;
// Europe
int eStartHour = StringToInteger(StringSubstr(EuropeStartTime, 0, 2));
int eStartMinute = StringToInteger(StringSubstr(EuropeStartTime, 3, 2));
int eStartTotal = eStartHour * 60 + eStartMinute;
int eEndHour = StringToInteger(StringSubstr(EuropeEndTime, 0, 2));
int eEndMinute = StringToInteger(StringSubstr(EuropeEndTime, 3, 2));
int eEndTotal = eEndHour * 60 + eEndMinute;
// NY
int nStartHour = StringToInteger(StringSubstr(NYStartTime, 0, 2));
int nStartMinute = StringToInteger(StringSubstr(NYStartTime, 3, 2));
int nStartTotal = nStartHour * 60 + nStartMinute;
int nEndHour = StringToInteger(StringSubstr(NYEndTime, 0, 2));
int nEndMinute = StringToInteger(StringSubstr(NYEndTime, 3, 2));
int nEndTotal = nEndHour * 60 + nEndMinute;
// --- Get the candle time in total minutes ---
datetime candleTime = iTime(Symbol(), tf, candle_id);
int candleHour = TimeHour(candleTime);
int candleMinute = TimeMinute(candleTime);
int candleTotalMinutes = candleHour * 60 + candleMinute;
// --- Check all three session windows ---
bool inAsian = (candleTotalMinutes >= aStartTotal && candleTotalMinutes < aEndTotal);
bool inEurope = (candleTotalMinutes >= eStartTotal && candleTotalMinutes < eEndTotal);
bool inNY = (candleTotalMinutes >= nStartTotal && candleTotalMinutes < nEndTotal);
// --- Final decision ---
if (inAsian || inEurope || inNY) {
Output = 1;
} else {
Output = 0;
}
I am trying to extract the HH part of the candle time so as to compare it to a fixed value. Can this be done?
I tried the following but it doesn't work

NB: using the time filter block doesn't work as I want to check candle of previous days
@fxDreema said in Timeframe as input:
NUM_TIMEFRAMES
And for a variable that is a timeframe, what should the data type be?
Hi
I am trying to create a drop down menu in the input tab of an EA.
I copy-pasted what I found on https://fxdreema.com/forum/topic/19905/input-variables

However, I got compilation error: 'value13' - invalid array access
What is wrong?
Is it possible to define colors in the input tab? How can this be done?

Thanks Jstap. This works!
Hi,
I would like to figure out how to edit the items in the variable column on the inputs tab.
For example, how can I have "Time frame" instead of "inp132_ObjName"
Can anybody help?

PS: Deepseek knows how fxdreema works. When asking Deepseek to write some code, it's important to specify in the prompt that it will be used in fxdreema.
Problem solved: I asked Deepseek to write the custom MQL code for me and it works great!
https://fxdreema.com/shared/3m3re13B
The code is as follows:
MqlDateTime dt;
TimeToStruct(TimeCurrent(), dt); // Get the current time as a structure
// Create template name "TEMPLATE-YY-MM-DD hh-mm-ss"
string templateName = StringFormat("TEMPLATE-%02d-%02d-%02d %02d-%02d-%02d",
dt.year % 100, // Get last two digits of the year
dt.mon, // Month
dt.day, // Day
dt.hour, // Hour
dt.min, // Minute
dt.sec); // Second
// Save the template
if (ChartSaveTemplate(0, templateName))
{
Print("Template saved successfully: ", templateName);
}
else
{
Print("Failed to save template.");
}
Hi all,
I would like my EA to automatically save template every 1 minute. Is there a way to do that?
I am interested in that block but when i click on the link, i get error message "error "Failed to load project"
Do you have the same problem with built 1420?
I noticed some issues with built 1440 that don't appear with built 1420
What I noticed recently is fxdreema EAs working perfectly fine MT4 build 1420 and not working on MT4 build 1422
Maybe one of your brokers is using build 1420 and the other build 1422?
Anybody noticed that the EAs don't work properly on MT4 build 1422?
I have the exact same fxdreema EAs installed on MT4 build 1420 and MT4 build 1422. Works perfectly fine on build 1420. Total mess on build 1422.
OK sorry.
I could just figure out the problem: the HA indicator in my MT4 platform was corrupted. I copied an instance from another MT4 instance and it now works fine.
Thanks Jstap for trying to help. Your kind help from the other side of the planet is highly appreciated