MetaEditor build 1463 - page 13

 
Alexey Kozitsyn:
Try pressing "ctrl "+"-". But it doesn't always work.

Thank you! Why did I bother before?

And it worked/not worked - pay attention to keyboard layout (RU/EN), sometimes it influences. If you notice a symptom - please let me know.

 
Vladimir Karputov:

Thank you! Why did I bother before?

But it did/didn't work - pay attention to the keyboard layout (RU/EN), sometimes it affects it. If you notice any symptoms, please let me know.

So far it works with any layout.
 
Vladimir Karputov:

Thank you! Why did I bother before?

And it did/didn't work - pay attention to the keyboard layout (RU/EN), sometimes it affects it. If you notice any symptoms, please let me know.

You're welcome. There are situations when (for some reason) throws me to another file... Don't know what it's related to...
 

MetaQuotes-Demo released a beta version of build 1467 yesterday:

  • Old Tick fix in the tester
  • ArrayPrint upgrade - can now print structures too
  • Direct sorting of output in the Log window + ability to disable date and source columns, giving more room for data
  • Math library upgrade
  • Upgraded kanvas with new smoothed output functions
  • A new graphics library /include/graphics has been added with the CGraphic class, which is analogous to the graphics capabilities of the R language. You can now easily visualize arrays of data.
  • More trivia

Please update and test this version.

 
Renat Fatkhullin:
  • ArrayPrint upgrade - can now print structures too
This happiness is almost.
template <typename T>
void MyPrint( const T &Value )
{
  T Array[1];
  
  Array[0] = Value;
  
  ArrayPrint(Array);
}

void OnStart()
{
  MqlTick Tick;
  
  SymbolInfoTick(_Symbol, Tick);

  MyPrint(Tick);
}
2016.11.10 11:07:42.764 Test (EURUSD,M1)                         [time]   [bid]   [ask]  [last] [volume]    [time_msc] [flags]
2016.11.10 11:07:42.764 Test (EURUSD,M1)        [0] 2016.11.10 11:10:11 1.09207 1.09217 1.09207   500000 1478776211595       2

Only thing missing is the impending ArrayToString. Then the output could be modified. For example time_msc and flags.

 
Error
void OnStart()
{
  const int Value = 0;
  int Array[] = {Value}; // 'Value' - constant expression required
}
 
Renat Fatkhullin:

MetaQuotes-Demo released a beta version of build 1467 yesterday:

  • A kanvas upgrade with new smoothed output features
  • Added new graphics library /include/graphics with the CGraphic class, which is analogous to the graphics capabilities of the R language. Arrays of data can now be easily visualized.
Where do the examples lie?
 
There's a problem with that
template <typename T>
void MyPrint( const T &Value )
{
  T Array[1];
  
  Array[0] = Value;
  
  ArrayPrint(Array);
}

struct STRUCT
{
  MqlTick Tick;
  int Tmp;
};

void OnStart()
{  
  STRUCT Tmp = {0};

  MyPrint(Tmp);
}
2016.11.10 11:21:26.976 Test (EURUSD,M1)            [Tmp]
2016.11.10 11:21:26.976 Test (EURUSD,M1)        [0]     0
 
fxsaber:
There's a problem with that.
2016.11.10 11:21:26.976 Test (EURUSD,M1)            [Tmp]
2016.11.10 11:21:26.976 Test (EURUSD,M1)        [0]     0
Printing only simple types of course.
 
fxsaber:
Where do the examples lie?

Nowhere so far.

This is a beta announcement