Development plans for the MetaTrader 5 Strategy Tester - page 7

 
Andrey Barinov:

Looks like we're getting nowhere....

Aliaksandr Hryshyn:
I wonder how many people use comments to functions (classes, structures...) using this very design on the left?

Yeah, who likes what they like. Personally, my eyes glaze over with so much code formatting that I can't see the code itself.

Perhaps masteringVisual Studio Code would be a good solution.


 
Nikolai Semko:

Yes, who likes what they like. Personally, my eyes glaze over with so much code formatting that I can't see the code itself.

Perhaps masteringVisual Studio Code would be a good solution.


How to compile through Visual Studio ?

 
Nikolai Semko:

Yes, who likes what they like. Personally, my eyes glaze over with so much code formatting that I can't see the code itself.

Perhaps masteringVisual Studio Code would be a good solution.


I'm still sitting on the old editor... Anyway, some of my projects stopped compiling with the new one :) and I don't have time to figure out what happened there. I am waiting for the official release, then I will think what to do.

 
Vladimir Pastushak:

How to compile via visual studio ?

Here it says it is possible.https://www.mql5.com/en/blogs/post/719548
It's also written in documentation:https://www.metatrader5.com/ru/metaeditor/help/beginning/integration_ide#compiler
I'll have to give it a try.

Just haven't figured out if debugging is possible yet. Hard to believe, although simply delegating control to an in-house meta-editor is theoretically possible with debugging.

 

Forum on trading, automated trading systems and trading strategy testing

New version of MetaTrader 5 build 2085: Integration with Python and massive improvements in strategy tester

Andrey Barinov, 2019.09.06 06:11

Broken typename() in build 2136

Please fix it back.

enum eTest
  {
   TEST
  };
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   Alert(typename(eTest)); // eTest::eTest а правильно (и раньше так было) eTest
//---
   return(INIT_SUCCEEDED);
  }

typename


 

Forum on trading, automated trading systems and trading strategy testing

New version of MetaTrader 5 build 2085: Integration with Python and massive improvements in strategy tester

Andrey Barinov, 2019.09.06 06:25

Can you still explain why there is a warning in this code now?

The methods have different signatures...

class A
  {
   public:
                     A(void) {}
                    ~A(void) {}
      //===============
      void           Test(void) {}
      //===============
  };
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+  
class B : public A
  {
   public:
                     B(void) {}
                    ~B (void) {}
      //===============
      void           Test(int a) {}
      //===============
  };
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   B b;

   b.Test(); //deprecated behavior, hidden method calling will be disabled in a future MQL compiler versions
   b.Test(5);
//---
   return(INIT_SUCCEEDED);
  }

 
Aliaksandr Hryshyn:
I wonder, how many people use comments to functions (classes, structures...) using exactly this form on the left?

I delete this kind of comment at once, as it clogs the eyes and write it like this

//------------------------------------------------------------------
//This function Ceil                                   
int Ceil(double x)
{ 
   return (x-(int)x>0) ? (int)x+1 : (int)x;
}

//------------------------------------------------------------------
//This function Round
int Round(double x)
{
   return (x>0) ? (int)(x+0.5) : (int)(x-0.5); 
}

//------------------------------------------------------------------
//This function Floor
int Floor(double x)
{
   return (x>0) ? (int)x : ((int)x-x>0) ? (int)x-1 : (int)x;
}
 
Nikolai Semko:

it says here you can.https://www.mql5.com/en/blogs/post/719548
And it says so in documentation: https://www.metatrader5.com/ru/metaeditor/help/beginning/integration_ide#compiler
I'll have to give it a try.

Just haven't figured out yet whether debugging is possible. Hard to believe, although simply delegating control to an in-house meta-editor is theoretically possible with debugging.

Wow, thanks for the link, been using VSC for a long time and didn't know it's possible to hook it up to ME, definitely read the article ))

 
Nikolai Semko:

It says here it's possible.https://www.mql5.com/en/blogs/post/719548
It's in the documentation too: https://www.metatrader5.com/ru/metaeditor/help/beginning/integration_ide#compiler
I have to try it.

Just haven't figured out yet whether debugging is possible. It's hard to believe, although simply delegating control to an in-house meta-editor is theoretically possible with a debug.

It's all fantasy... Doesn't work...

I tried everything differently, lots of errors keep coming up...

 
Nikolai Semko:

I second that.
It's really hard to get used to such thickets:

Personally, I like it better the way it has become. In the header squares of their pseudo-graphics - you should still have a description of each function.