How can the script programmatically go through all the instruments that are selected in the Market Watch window? - page 6

 
tara:

Since Rustam has already posted this, let me repeat it:

FAQ 18.12.2012 19:13



And read, and look at the code?

 
eevviill:
Are you going to fix this bug?
It's not a bug. It is specially programmed behaviour.
 
stringo:
It's not a bug. It's specially programmed behaviour.

Are you saying that the error is in my code? No.

Meaning what? That's right, a bug.

Are you just being defensive or do you really think it's not a bug?

There are 5 pairs in the market review, the EA scanned them and opened 8. Is this the programmed correct behaviour??

 
stringo:
This is not a bug. It is specifically programmed behaviour.

This is not a bug. It is an undocumented feature. You can briefly mention this behaviour in the help.

 
eevviill:

Are you saying that the error is in my code? No.

Meaning what? That's right, a bug.

Are you just being defensive or do you really think it's not a bug?

There are 5 pairs in the market review, the Expert Advisor scanned them and opened 8. Is this programmed correct behaviour?

This behaviour was present long before we updated MQL4. Namely, implicit inclusion of pairs that participate in calculation of profits and margin requirements (if they weren't included before). This behaviour suits everyone but you.

We will not change it because of you alone. And how do you change this behaviour? Show these symbols explicitly in the market report? Or don't display them in the request? You haven't even told us how to change it to make it right.

 
stringo:

...Or don't give them out in the query of the selected ones?

Exactly.

Or give the code(logic) so you can implement what is required.

1) There are 5 pairs in the review and the EA scans them for a condition to open an order.

2) The Expert Advisor scans 4 pairs; it adds 1 pair and scans 6.

And does not scan 5, then they became 8...29...all pairs by themselves.

 
stringo:

This behaviour was much longer before we updated MQL4...

It was not possible to search for characters in the overview.
 
The only thing we can suggest to resolve this situation painlessly is to return the information whether the selected character is hidden or not.
 
stringo:
The only thing we can suggest to resolve this situation painlessly is to return the information whether the selected character is hidden or not.
ok.
 

SymbolInfoInteger()

SYMBOL_VISIBLE

P.S. Thanks to the flooders for keeping up the theme!