fxDreema

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

    Best posts made by 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
    • 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 enum list

      Thanks L'andorra.

      I solved the problem by changing the entries as follows:

      image.png

      posted in Questions & Answers
      F
      fxgump
    • 1 / 1