This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
ObjectCreate questionBack to topics list |
|
iad
2004.12.20 20:34
Hi,
i want to creat a line in indicator window. now, in the ObjectCreate funtion i need to add the window index as a parameter. now my quetsion is how to retrive the index for the indicator window ? thanks, |
|
Slawa
2004.12.20 21:04
if your indicator is placed in the separate subwindow then you need to find that window with function WindowFind. use as parameter short name of the indicator (for instance "MACD(12,26,9)")
|
|
iad
2004.12.20 21:31
Thank you Slawa,
i tried this with
|
|
Slawa
2004.12.21 11:53
check expert log for errors. are you sure that subwindow is found? is your indicator "Lirom 2" first in some subwindow? short name "Lirom 2" is to be first in the left top corner of the indicator subwindow.
after object creating and changing You need to call ObjectsRedraw function press ctrl + B and see objects list and check your parameters for horizontal line in accordance with coordinate scale of the found subwindow. |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
