fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Dieter
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 52
    • Posts 148
    • Best 4
    • Controversial 0
    • Groups 0

    Dieter

    @Dieter

    4
    Reputation
    3159
    Profile views
    148
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Dieter Unfollow Follow

    Best posts made by Dieter

    • Big problem: array out of range (3297,29)

      Hallo Admin,

      • no red errors when compiling
      • no error message during the optimization
        But during trading, the EA is removed from the chart and the following error messages appear.

      II 0 18:40:16.761 Var2_2.1cr (GBPUSD.m,M5) Terminal has been closed
      NL 0 18:40:59.729 Myfxbook (CHFJPY.m,H1) log -- Myfxbook EA Version 1.63
      CJ 0 18:40:59.730 Myfxbook (CHFJPY.m,H1) log -- Show_Log mode: 1
      JK 0 18:40:59.744 Myfxbook (CHFJPY.m,H1) log -- Debug mode: 0
      NH 2 18:40:59.786 Var3_1.0 (AUDCAD.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      CD 2 18:40:59.799 Var3_1.0 (AUDCHF.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      QQ 2 18:41:20.235 Var3_1.0 (AUDCHF.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      HN 2 18:41:38.597 Var3_1.0 (AUDCAD.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      JH 0 18:41:56.0_1551120664363_mql5.JPG 195 Myfxbook (CHFJPY.m,H1) Statement uploaded successfully
      CQ 0 18:42:58.039 Var2_2.1cr (GBPUSD.m,M5) Terminal has been closed
      NJ 0 18:42:58.039 Var3_1.0 (EURUSD.m,M5) Terminal has been closed
      JL 0 18:43:02.359 Myfxbook (CHFJPY.m,H1) log -- Myfxbook EA Version 1.63

      Is the failture known and can you tell me why this is going on?

      posted in Bug Reports
      D
      Dieter
    • RE: Big problem: array out of range (3297,29)

      // "Once per bar" model
      template<typename T1,typename T2,typename T3>
      class MDL_OncePerBar: public BlockCalls
      {
      public: /* Input Parameters /
      T1 Symbol;
      T2 Period;
      T3 PassMaxTimes;
      /
      Static Parameters */
      string tokens[];
      int passes[];
      datetime old_values[];
      datetime time[];
      virtual void callback(int r) {return;}

      public: /* Constructor */
      MDL_OncePerBar()
      {
      	Symbol = (string)CurrentSymbol();
      	Period = (ENUM_TIMEFRAMES)CurrentTimeframe();
      	PassMaxTimes = (int)1;
      }
      
      public: /* The main method */
      virtual void _execute_()
      {
      	// this is static for speed reasons
      	
      	bool next    = false;
      	string token = Symbol + IntegerToString(Period);
      	int index    = ArraySearch(tokens, token);
      	
      	if (index == -1)
      	{
      		index = ArraySize(tokens);
      		
      		ArrayResize(tokens, index + 1);
      		ArrayResize(old_values, index + 1);
      		ArrayResize(passes, index + 1);
      		
      		tokens[index] = token;
      		passes[index] = 0;
      		old_values[index] = 0;
      	}
      	
      	if (PassMaxTimes > 0)
      	{
      		CopyTime(Symbol, Period, 1, 1, time);
      		**datetime new_value = time[0];**
      	
      		if (new_value > old_values[index])
      		{
      			passes[index]++;
      	
      			if (passes[index] >= PassMaxTimes)
      			{
      				old_values[index]  = new_value;
      				passes[index] = 0;
      			}
      	
      			next = true;
      		}
      	}
      	
      	if (next) {_callback_(1);} else {_callback_(0);}
      }
      

      };

      posted in Bug Reports
      D
      Dieter
    • RE: Array out of range at OnTradeDetector()

      Dear Sapiens,

      I have a similar problem:

      https://fxdreema.com/forum/topic/6858/big-problem-array-out-of-range-3297-29

      I can not find a solution.

      posted in Bug Reports
      D
      Dieter
    • RE: Big problem: array out of range (3297,29)

      Hello,

      do you have any idea what is going on?

      0_1551790550624_Expert-Failture.JPG

      posted in Bug Reports
      D
      Dieter

    Latest posts made by Dieter

    • RE: Same blocks, different results for MT5

      I hope they will not give up.

      posted in Bug Reports
      D
      Dieter
    • RE: Same blocks, different results for MT5

      The response times are really long.
      https://fxdreema.com/forum/topic/7167/mt5-prolem-with-programm-code-since-build-2006-and-2007-enum_timeframes-not-working-ok

      Small deviations between MT4 and MT5 are normal. I also have a problem with ENUM_TIMEFRAMES in MT5 (not in MT4) which also causes deviations between MT4 and MT5, as well as database .....

      posted in Bug Reports
      D
      Dieter
    • MT5: Prolem with programm code since Build 2006 and 2007: ENUM_TIMEFRAMES not working ok.

      Hi,
      I will send an email with the log-file.

      Here is the problem and mql-file attached.

      1_1556985076929_set-vieuw.JPG 0_1556985076928_Log-vieuw.JPG

      The problem arises in MT5 if you use the ENUM_TIMEFRAMES in the EA. Please try and improve. Optimize with red marked set-timeframe and see what happens.

      1_1556985278254_LN-DiWi_1.00.mq5 0_1556985278254_LN-DiWi_1.00.ex5

      posted in Bug Reports
      D
      Dieter
    • MT5: Prolem with programm code since Build 2006 and 2007

      Re: MT5: Prolem with programm code since Build 2006 and 2007

      2_1555870865819_Compiling.JPG 1_1555870865819_agent failed.JPG 0_1555870865819_Log.JPG

      posted in Bug Reports
      D
      Dieter
    • MT5: Prolem with programm code since Build 2006 and 2007

      I send a e-Mail

      https://www.mql5.com/en/forum/304667

      posted in Bug Reports
      D
      Dieter
    • RE: Array out of range at OnTradeDetector()

      Dear Sapiens,

      I have a similar problem:

      https://fxdreema.com/forum/topic/6858/big-problem-array-out-of-range-3297-29

      I can not find a solution.

      posted in Bug Reports
      D
      Dieter
    • RE: Big problem: array out of range (3297,29)

      Hello,

      do you have any idea what is going on?

      0_1551790550624_Expert-Failture.JPG

      posted in Bug Reports
      D
      Dieter
    • RE: Big problem: array out of range (3297,29)

      // "Once per bar" model
      template<typename T1,typename T2,typename T3>
      class MDL_OncePerBar: public BlockCalls
      {
      public: /* Input Parameters /
      T1 Symbol;
      T2 Period;
      T3 PassMaxTimes;
      /
      Static Parameters */
      string tokens[];
      int passes[];
      datetime old_values[];
      datetime time[];
      virtual void callback(int r) {return;}

      public: /* Constructor */
      MDL_OncePerBar()
      {
      	Symbol = (string)CurrentSymbol();
      	Period = (ENUM_TIMEFRAMES)CurrentTimeframe();
      	PassMaxTimes = (int)1;
      }
      
      public: /* The main method */
      virtual void _execute_()
      {
      	// this is static for speed reasons
      	
      	bool next    = false;
      	string token = Symbol + IntegerToString(Period);
      	int index    = ArraySearch(tokens, token);
      	
      	if (index == -1)
      	{
      		index = ArraySize(tokens);
      		
      		ArrayResize(tokens, index + 1);
      		ArrayResize(old_values, index + 1);
      		ArrayResize(passes, index + 1);
      		
      		tokens[index] = token;
      		passes[index] = 0;
      		old_values[index] = 0;
      	}
      	
      	if (PassMaxTimes > 0)
      	{
      		CopyTime(Symbol, Period, 1, 1, time);
      		**datetime new_value = time[0];**
      	
      		if (new_value > old_values[index])
      		{
      			passes[index]++;
      	
      			if (passes[index] >= PassMaxTimes)
      			{
      				old_values[index]  = new_value;
      				passes[index] = 0;
      			}
      	
      			next = true;
      		}
      	}
      	
      	if (next) {_callback_(1);} else {_callback_(0);}
      }
      

      };

      posted in Bug Reports
      D
      Dieter
    • Big problem: array out of range (3297,29)

      Hallo Admin,

      • no red errors when compiling
      • no error message during the optimization
        But during trading, the EA is removed from the chart and the following error messages appear.

      II 0 18:40:16.761 Var2_2.1cr (GBPUSD.m,M5) Terminal has been closed
      NL 0 18:40:59.729 Myfxbook (CHFJPY.m,H1) log -- Myfxbook EA Version 1.63
      CJ 0 18:40:59.730 Myfxbook (CHFJPY.m,H1) log -- Show_Log mode: 1
      JK 0 18:40:59.744 Myfxbook (CHFJPY.m,H1) log -- Debug mode: 0
      NH 2 18:40:59.786 Var3_1.0 (AUDCAD.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      CD 2 18:40:59.799 Var3_1.0 (AUDCHF.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      QQ 2 18:41:20.235 Var3_1.0 (AUDCHF.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      HN 2 18:41:38.597 Var3_1.0 (AUDCAD.m,M5) array out of range in 'Var3_1.0.mq5' (3297,29)
      JH 0 18:41:56.0_1551120664363_mql5.JPG 195 Myfxbook (CHFJPY.m,H1) Statement uploaded successfully
      CQ 0 18:42:58.039 Var2_2.1cr (GBPUSD.m,M5) Terminal has been closed
      NJ 0 18:42:58.039 Var3_1.0 (EURUSD.m,M5) Terminal has been closed
      JL 0 18:43:02.359 Myfxbook (CHFJPY.m,H1) log -- Myfxbook EA Version 1.63

      Is the failture known and can you tell me why this is going on?

      posted in Bug Reports
      D
      Dieter
    • RE: Where to put Play Sound on the roaming file in WIN 10?

      @fxdreema
      many thanks

      posted in Questions & Answers
      D
      Dieter