Download MetaTrader 5
To add comments, please log in or register
Copy the deals of successful traders. Subscribe to signals!
Musngi
303
Musngi 2016.10.18 08:34 

Is it possible to run 2 indicators in one program?? For example 1 for Main Chart and other one for Subwindow.

I want this 2 indicator to share data at the same time. I don't have an idea to do this because of #property indicator_chart_window

Can you please give me sample code. 

peter.MT4Web
158
peter.MT4Web 2016.10.18 09:47  

If you want to draw buffer values on both windows, it is not possible.

You can use buffers in the sub-window and objects in the main-window.

Musngi
303
Musngi 2016.10.18 14:03  
eddie:

If you want to draw buffer values on both windows, it is not possible.

You can use buffers in the sub-window and objects in the main-window.


I planning to use buffers in sub-window and ObjectCreate in main chart but how?
peter.MT4Web
158
peter.MT4Web 2016.10.18 16:26  

How?

How to use buffers, how to use object functions, how to code an indicator, ...

Musngi
303
Musngi 2016.10.18 16:35  
eddie:

How?

How to use buffers, how to use object functions, how to code an indicator, ...


How can I merge that in one program, like I said before I used  #property indicator_chart_window this means that all indicator will put in main chart or sub-window if you use #property indicator_seperate_window

I want 1 indicator to display in main chart and 1 indicator for sub-window in one mql4 program. 

peter.MT4Web
158
peter.MT4Web 2016.10.18 16:40  

There is no merge. You code for the sub-window and use objects for the main-window.

Musngi
303
Musngi 2016.10.18 16:44  
eddie:

There is no merge. You code for the sub-window and use objects for the main-window.


I don't understand. Give me sample code. 

whroeder1
14242
whroeder1 2016.10.18 16:49  
Musngi: I don't understand. Give me sample code. 
Perhaps you should read the manual. ObjectCreate - Object Functions - MQL4 Reference What do you think the sub_window parameter is for?
Musngi
303
Musngi 2016.10.18 17:09  
WHRoeder:
Musngi: I don't understand. Give me sample code. 
Perhaps you should read the manual. ObjectCreate - Object Functions - MQL4 Reference What do you think the sub_window parameter is for?

I already used that in my first indicator in main chart after I changed to #property indicator_separate_window it works but how can I put my second indicator in sub-window using buffers? Its still confusing when MQL4 is not supported well this type of combination with multi time-frame and multi-symbols. I hope the MQL4 developer create a decent User Interface for indicator.

I have an idea. How about using DLL to create User Interface for indicator? I mean using MS Windows GUI. Is that possible? 

peter.MT4Web
158
peter.MT4Web 2016.10.18 19:44  

I have got lost ...

rod178
274
rod178 2016.10.19 03:26  
eddie:

I have got lost ...



OP is a Troll
/ /12
To add comments, please log in or register