fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. fxgump
    3. Posts
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 13
    • Posts 39
    • Best 3
    • Controversial 0
    • Groups 0

    Posts made by fxgump

    • RE: Problem with enum list

      Thanks L'andorra.

      I solved the problem by changing the entries as follows:

      image.png

      posted in Questions & Answers
      F
      fxgump
    • Problem with enum list

      Hi all,

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

      14237bb8-437a-4338-be66-fbd1b6417a0f-image.png

      0933fd7b-4dd1-47a8-8600-e6b2f58b4c14-image.png

      https://fxdreema.com/shared/uQSDs1nAc

      Any idea what I did wrong?

      Thanks in advance for your help

      posted in Questions & Answers
      F
      fxgump
    • RE: Timeframe as input

      Thank you jstap!

      posted in Questions & Answers
      F
      fxgump
    • RE: How to extract the HH part of the candle time?

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

      posted in Questions & Answers
      F
      fxgump
    • How to extract the HH part of the candle time?

      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

      d8f1d65b-ee22-479e-a73f-6707e6b3dd0f-image.png

      NB: using the time filter block doesn't work as I want to check candle of previous days

      posted in Questions & Answers
      F
      fxgump
    • RE: Timeframe as input

      @fxDreema said in Timeframe as input:

      NUM_TIMEFRAMES

      And for a variable that is a timeframe, what should the data type be?

      posted in Questions & Answers
      F
      fxgump
    • Array of strings in the input tab

      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

      9de1f066-9101-41aa-aec0-701667cf4477-image.png

      However, I got compilation error: 'value13' - invalid array access

      What is wrong?

      https://fxdreema.com/shared/q0n3fMr6e

      posted in Questions & Answers
      F
      fxgump
    • RE: How to edit variables in the inputs tab?

      Is it possible to define colors in the input tab? How can this be done?

      image.png

      posted in Questions & Answers
      F
      fxgump
    • RE: How to edit variables in the inputs tab?

      Thanks Jstap. This works!

      posted in Questions & Answers
      F
      fxgump
    • How to edit variables in the inputs tab?

      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?

      4bace8e0-51b1-4a8a-89a8-7f1c7bab2354-image.png

      posted in Questions & Answers
      F
      fxgump
    • RE: Automatically save template

      @l-andorrĂ  My pleasure

      posted in Questions & Answers
      F
      fxgump
    • RE: Automatically save template

      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.

      posted in Questions & Answers
      F
      fxgump
    • RE: Automatically save template

      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.");
      }

      posted in Questions & Answers
      F
      fxgump
    • Automatically save template

      Hi all,

      I would like my EA to automatically save template every 1 minute. Is there a way to do that?

      posted in Questions & Answers
      F
      fxgump
    • Using round number

      @fxDreema

      I am interested in that block but when i click on the link, i get error message "error "Failed to load project"

      posted in Questions & Answers
      F
      fxgump
    • RE: Hi, I am using built 1440 and still found Ordersend error 138. Anyone know how to fix it? Thanks.

      Do you have the same problem with built 1420?

      I noticed some issues with built 1440 that don't appear with built 1420

      posted in Questions & Answers
      F
      fxgump
    • RE: EA works with some brokers and not others?

      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?

      posted in Questions & Answers
      F
      fxgump
    • MT4 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.

      posted in Questions & Answers
      F
      fxgump
    • RE: Problem with the heiken ashi indicator?

      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

      posted in General Discussions
      F
      fxgump
    • RE: Problem with the heiken ashi indicator?

      Thanks for your prompt reply. There is a link in my initial post

      There it is again:

      test HA.mq4

      posted in General Discussions
      F
      fxgump
    • 1
    • 2
    • 1 / 2