Errors, bugs, questions - page 2336

 
By the way, I've noticed that the profiler has stopped working on large programmes. :((
 
Nikolai Semko :
By the way, I noticed that the profiler has stopped working on big programs. :((

What are big programmes?

I use it without any problems on Build 1953.

 
Alain Verleyen:

What are big programmes?

I use it without any problems on Build 1953.

Yes, my apologies. I made the wrong conclusion.
I had a 1950 build and profiling didn't work on all indicators.
Upgraded to 1954 build. Now the profiling is working.

 

There are all sorts of nuances with static variables. What is the reason for this behaviour on both platforms?

#property strict

int f()
{
  static const string Symb = _Symbol;
  
  Print(Symb);
  
  return(0);
}

const int Init = f(); // Пусто

void OnStart()
{
  f(); // Не пусто
}
 
Website history has not been updated since 30 November ...
 

Forum on trading, automated trading systems and trading strategy testing

Bugs, bugs, questions

fxsaber, 2018.11.09 15:34

In the Tester whose event is generated first, the tick or the timer?

For example, Timer should be called at 12:00:00.000. And there is a tick with the same time. Which is triggered first, OnTimer or OnTick?

Unfortunately, this is not always the case. If a pending level triggered on a tick, OnTick is called first and only then OnTimer.

@Slava, do you think this situation is correct?

 
fxsaber:

There are all sorts of nuances with static variables. What is the reason for this behaviour on both platforms?

Because this is not C++. There is a special logic here: Init is initialized before Symb

 
A100:

Because this is not C++. There is a special logic here: Init is initialized before Symb

I need to understand this logic or read it somewhere.

 
fxsaber:

I would like to understand this logic or read it somewhere.

void f()
{
static a;
}
static b;

actually means

void f()
{
}
static b;
static a;

first the freestanding static, and in {} then

 
A100:

actually means

first of all, freestanding static, well, in {} then

Got it, thanks!

Reason: