how to separate the HLINE showing in one indicator?

 

hello All ,
need help : how to separate the HLINE showing in one indicator?
one group line is only for AUDUSD and one group is only for AUDJPY

Thank you in advance
best regards

//this HLINE from here is only showing for AUDUSD                                                                                                                                                                                                                                               
ObjectCreate    ("      1000    ",      OBJ_HLINE,      0,0,     1.10806        );

//this HLINE from here is only showing for AUDJPY                                                                                                                                                                                                                                               
ObjectCreate    ("      2000    ",      OBJ_HLINE,      0,0,     148.600        );
//this HLINE until here is only showing for AUDJPY              
 
Ruslan Junihaga St:

 how to separate the HLINE showing in one indicator?
one group line is only for AUDUSD and one group is only for AUDJPY

  1. Separate an Hline makes no sense.
  2. Displaying a price from another symbol on the current chart makes no sense. How to you think you are going to see lines in the 50-150 range when the chart prices are 1.0-1.5 range.
 
William Roeder:
  1. Separate an Hline makes no sense.
  2. Displaying a price from another symbol on the current chart makes no sense. How to you think you are going to see lines in the 50-150 range when the chart prices are 1.0-1.5 range.

thank you very fast response.

sorry, my English is bad


sorry not separate an HLINE


I want to make 17 horizontal lines, which only appear in AUDUSD, then 17 horizontal lines that only appear in AUDJPY, in one indicator.

so that when opening AUDNZD these lines no longer appear.



ObjectCreate ( "AUDUSD 01", OBJ_HLINE , 0 , 0 , 1.04243 );
how to make this line only appear on AUDUSD, not in AUDNZD
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
When a graphical object is created using the ObjectCreate() function, it's necessary to specify the type of object being created, which can be one of the values of the ENUM_OBJECT enumeration. Further specifications of object properties are possible using functions for working with graphical objects.
 
ObjectsDeleteAll(0,"AUDUSD");
if(Symbol()!="AUDNZD")
 {
 ObjectsDeleteAll(0,"AUDNZD");
 }
But it will be better if you just only create the ones for that chart by creating a function and just passing the Symbol() to it./
 
Ruslan Junihaga St: I want to make 17 horizontal lines, which only appear in AUDUSD, then 17 horizontal lines that only appear in AUDJPY, in one indicator.

so that when opening AUDNZD these lines no longer appear.

Stop making your own problem. If the chart is AUDUSD make the first 17, and not the second 17; done!  If the chart is AUDJPY, make the second set and not the first; done!! Otherwise, do nothing; done!!!

 
thanks, this is help
Reason: