Errors, bugs, questions - page 2170

 
Comments not related to this topic have been moved to "Questions from MQL4 MT4 MetaTrader 4 beginners".
 

Where is StringSubstr?


 
A100:

Where is StringSubstr ?

woohoo -- the autocomplete should be case-independent and type-independent, this at least should be configurable.

As soon as there is the slightest problem with types, the autocomplete becomes useless. The proposed functions do not return a string

 
Vladimir Pastushak:

Do I understand correctly that this example in the help does not work???

Apart from ctrl and shift and scroll no other buttons work .....

On my new chart, only when I restarted the example worked (all buttons), which in itself is incomprehensible. But it is clear now.

Forum on trading, automated trading systems and strategy testing

Bugs, bugs, questions

Vladislav Andruschenko, 2018.01.30 10:39

Check mouse scrolling

  Print(id + "lparam="+lparam+" dparam="+dparam+" sparam="+sparam);


When scrolling mouse, EA does not get depth and direction of scrolling.

2018.01.30 11:38:07.629 Exp -  6 (EURUSD,H1)    9 lparam=0 dparam=0.0 sparam=
2018.01.30 11:38:07.784 Exp -  6 (EURUSD,H1)    9 lparam=0 dparam=0.0 sparam=
2018.01.30 11:38:08.188 Exp -  6 (EURUSD,H1)    9 lparam=0 dparam=0.0 sparam=
2018.01.30 11:38:08.958 Exp -  6 (EURUSD,H1)    9 lparam=0 dparam=0.0 sparam=


I want to get the result by function:

id==CHARTEVENT_MOUSE_WHEEL
With the opening of trades the specified effect (only on restart) is gone
 
I have to do it 2 times in the "colour" tab of the indicator parameters to change the colour - why the changed colour is not fixed from the first time?
And why, after you have changed the colour and then changed the parameters in the tab "input parameters" - the changed colours are lost again and you have to set the required colours again 2 more times?
This Bug has existed in MT4 for a long time. When will it be finally fixed?
 
Комбинатор:

woohoo -- the autocomplete should be case-independent and type-independent, it should at least be configurable.

As soon as there is the slightest problem with types, the autocomplete becomes useless. The suggested functions do not return the string

You can also attach a column with the data type (data type alternatives) returned by the function (its overloads) to the autocomplete. For example, you can use a slash. With indication what is returned when there is an error, when only one option remains.

It would be clear and convenient.

 

The text replacement function is incomplete in MetaEditor

Sequence of operations:

  1. Select File menu/Create/Script Name: Scripts\Test
  2. Select the Find menu/Substitute - with + (as in the picture)
  3. Replace all

Result: Only one substitution

All - was expected to be replaced by +

 
Can you tell me if ChartScreenShot() does not work during testing? There's no mention of it in the handbook.
 
A100:

The text replacement function is incomplete in MetaEditor

Sequence of operations:

  1. Select File menu/Create/Script Name: Scripts\Test
  2. Select the Find menu/Substitute - with + (as in the picture)
  3. Replace all

Result: Only one substitution

All - was expected to be replaced by +

Thank you, it has been corrected.

 


ENUM_POSITION_TYPE pos_type = PositionGetInteger(POSITION_TYPE);

It's cussed implict enum conversation, what have I done wrong? (I understand the error, maybe it must be executed in some other way?)