[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 262

 
IgorM:
There are a lot of materials posted on mql5 https://www.mql5.com/ru/code. If you know programming, you can either convert to mql4 or make a combination of two terminals MT5+MT4 https://www.mql5.com/ru/articles/189

I will try to use it as a base for my trading robot! I am not a good programmer yet! Then one more question: can Kovalev's book "Programming in MQL4 Algorithmic Language" help me, if I'm not an expert in programming?
 
D_J:

Thank you very much! I'm still a complete dummy in programming! Then one more question: Will Kovalev's book "Programming in MQL4 algorithmic language" help me understand programming, if, I repeat, I am a dummie in it?
everything will help.
 
Adapted from Superprofi thread.

gisip 20.03.2011 15:08
Hello!
Is there a function to include a currency pair in the "market overview"?
The pair itself is present but is also disabled when called:
//-- Проверить есть такой инструмент в обзоре рынка --
CodError = GetLastError();//-- Обнулить код ошибки
CodError = MarketInfo(g_s_Buf_Symbol[i],MODE_DIGITS);
CodError = GetLastError();//-- Получить данные --
if (CodError == 4106){//4106 ERR_UNKNOWN_SYMBOL Неизвестный символ

Print("В обзоре рынка нет инструмента " + g_s_Buf_Symbol[i] + " поэтому он будет пропущен!");
I would like the program to include a currency pair instead of skipping it.
Maybe someone knows how to implement it?
----------------------------------------------------------------------------
Zhunko 20.03.2011 16:58
Of course, you may realize it... It's not a matter of a couple of minutes.
 
granit77:
Adapted from Superprofi thread.

gisip 20.03.2011 15:08
Hello!
Is there a function to include a currency pair in the "market overview"?
The pair itself is present but disabled when called:
I would like the program to include a currency pair instead of skipping it.
Maybe someone knows how to implement it?
----------------------------------------------------------------------------
Zhunko 20.03.2011 16:58
Of course you can do it... It's not a matter of a couple of minutes.
I'm in no hurry. Write at least in what direction to go.
 
gisip:
I'm in no hurry. Write at least in which direction to go.

You can use MQL4 +WinAPI, but it is unreliable and slow. It is necessary to implement everything in a DLL.

1. If any instrument is not in the "Market Watch" window, it is necessary to open the "Symbols" window.

2. Obtain its descriptor.

3. Get the symbol tree descriptor.

4. Run through the list, find the right tool.

5. Button to add it.

But why all this? You can manually go in once and open all the tools you want.

 
Zhunko:

You can use MQL4 +WinAPI, but it is unreliable and slow. It is necessary to implement everything in a DLL.

1. If any instrument is not in the "Market Watch" window, it is necessary to open the "Symbols" window.

2. Obtain its descriptor.

3. Get the instrument tree descriptor.

4. Run through the list, find the right tool.

5. Button to add it.

But why all this? You can go in manually once and open all the tools you need.

Yes, it really is too complicated and unreliable!

Thanks for all your help!

 
Zhunko:

You can use MQL4 +WinAPI, but it is unreliable and slow. It is necessary to implement everything in a DLL.

1. If any instrument is not in the "Market Watch" window, it is necessary to open the "Symbols" window.

2. Obtain its descriptor.

3. Get the symbol tree descriptor.

4. Run through the list, find the right tool.

5. Button to add it.

But why all this? You can go in manually once and open all the tools you want.

You can also directly write the symbol to symbols.sel and then update the box.
 
alsu:
You can also write a symbol directly to symbols.sel and then update the window.

This is even more complicated!

You need to know the format of the file: symbols.sel

And then you still have to do what Zhunko wrote to make the update!

I have already implemented this way: I display a list of all the tools I need and gray out the ones that are disabled.

 
gisip:

It's even more complicated!

Need to know the file format: symbols.sel

And then you still have to do what Zhunko wrote to do the update!

The file format is already sorted out by someone, search the forum. And I'm not sure about the update, it's possible (and most likely) that it won't be needed.

But I agree in principle - it's easier to add a symbol by hand.

 
alsu:
You can also directly write the symbol to symbols.sel and then update the box.
Haven't tested it, but I doubt it works that way. The file is probably read only when MT4 starts. Otherwise it only works for writing to MT4.
Reason: