Errors, bugs, questions - page 1928

 

In MT5 it is extremely annoying to lose objects - here is an example - there was a regression channel and when I shifted by 1 bar it disappeared.

In general, this problem happens with all objects, especially if they are built on the upper TF and you are working on the lower TF.



 
Compilation error
class CLASS
{
public:
  template <typename T>
  T Get() const // ошибка исчезнет, если убрать const
  {
    T Res;
    return(Res);
  }
};

void OnStart()
{
  CLASS Class;

  Class.Get<MqlTick>(); // template mismatch
}
 

ChartScreenShot does not work correctly in visual tester mode.

void OnTick()
{
  Print(ChartScreenShot(0, "Test.png", 100, 100)); // true, но файл нулевой длины
  
  ExpertRemove();
}
 

We need an analogue of IndicatorParameters for EAs - ExpertParameters.

Due to its absence, it is impossible to understand in OnTesterPass which input parameters of the calculated pass came.

 

If you write Test.mqh like this

input int Test = 0;

And include it in another file with

#include <Test.mqh>

then the name of the include file will be brown.


 

How do I know if (and what?) there was an error when FrameAdd was called?

On local agents you can save to file and then look it up by hand.

On the Cloud - bummer. It would be necessary to send some information to OnTesterPass.

 

If you press Stop during a single run, OnDeinit and destructors are not called.

Is this a flaw or a bug?

 
FileLoad, FileSave, CHART_IS_OFFLINE etc. help only on website. They are not available offline.
 

If there is an error in OnTesterInit, OnTesterDeinit is not executed. BAG!

 

Please specify in the editor header not only the name, but also the full path of the active file. This can only be found at the moment via the Save As menu item.

Reason: