Errors, bugs, questions - page 2730

 
mox_dimass:

Running the test. The EA opens a position with SL and TP. Then rollover occurs and position is closed NOT by reopening.

This is the first time I heard about rollover in the Tester on forex symbol. What kind of server is it?

 
fxsaber:

This is the first time I have heard of a rollover in the Tester on forex symbol. What kind of server is it?

VTB

 
Please explain why this is the case.
void OnChartEvent( const int id, const long &lparam, const double&, const string& ) 
{         
  if ((id == CHARTEVENT_KEYDOWN) && (lparam != 16) && (lparam != 17)) 
    Print(lparam);
}

This advisor prints out the codes of the keys pressed (except CTRL and SHIFT).


If I press NumLock_0, it prints out 96.

If I press CTRL+NumLock_0, it prints out 96.

SHIFT+NumLock_0 gives me 45. Why 45?


With other keys (not NumLock) I didn't see such a discrepancy.


ZZY Seems like pressing SHIFT disables NumLock. Interestingly, TERMINAL_KEYSTATE_SHIFT does not work when SHIFT is pressed, if you press INSERT with it, for example.

 
fxsaber:

If I press SHIFT+NumLock_0, it gives 45. Why 45?

It's written on the key itself why it's 45. If it doesn't, it means the keyboard is old-fashioned or out of standard

 
A100:

It's written on the key itself why it's 45. If it doesn't, it means the keyboard is old-fashioned or not standardised.

It is written there in case NumLock is not active.

 
fxsaber:

It says in case NumLock is not active.

SHIFT+NumLock_0 -gives 45.

What was expected?

 
A100:

SHIFT+NumLock_0 -gives 45.

What was expected?

96, as with CTRL.

 
fxsaber:

96, as with CTRL.

On my numeric keypad, the 0 button says

0

ins

the code ins is exactly 45

 
Igor Makanu:

ins code is exactly 45

The ambiguity is that when NumLock is on, pressing 0 causes 96 and when CTRL is pressed. But with SHIFT pressed, it's 45.

 
How do I know through MQL that EX5 is protected?
protecting finished successfully                1       1
0 errors, 0 warnings, 19307 msec elapsed                1       1