Searching for horizontal lines

 

Hi guys,

is it possible to search in the chart, if there is a horizontal line?

How can i search for it, if i don't know if it exists and don't know the name?

Best regards

Mirko

 
FamWue:

Hi guys,

is it possible to search in the chart, if there is a horizontal line?

How can i search for it, if i don't know if it exists and don't know the name?

Best regards

Mirko


On chart choose    Ctrl+B

Now you will get the Object list

Search in Tabel Object      for "Horizontal Line"    

if you find it you will get all lines the names, window where to find, and it might be it has a description  

 
deVries:


On chart choose    Ctrl+B

Now you will get the Object list

Search in Tabel Object      for "Horizontal Line"    

if you find it you will get all lines the names, window where to find, and it might be it has a description  


Sorry,


i didn't say that i'm using an EA with this. So i can't open the object list.

Is there any other list in which the EA can search for a horizontal line? (i don't know the name an if it exists)

 
FamWue:

Sorry,


i didn't say that i'm using an EA with this. So i can't open the object list.

Is there any other list in which the EA can search for a horizontal line? (i don't know the name an if it exists)

Do this . . .


 or similar  . . . with a loop  from   ObjectsTotal() - 1 to 0

 
FamWue: is it possible to search in the chart, if there is a horizontal line and don't know the name?
#define ONDA_BEGINS   0
#define ONDA_CONTAINS 1
void ObjectNameDeleteAll(string name, int where=ONDA_BEGINS, int type=EMPTY){
   for(int iObj=ObjectsTotal()-1; iObj >= 0; iObj--){
      if(type != EMPTY) if(type != ObjectType(on)) continue;
      string   on = ObjectName(iObj);
      if(name != ""){
         int   iPos  = StringFind(on, name);
         if (iPos < 0)                             continue;
         if (iPos > 0 && where == ONDA_BEGINS)     continue;
      }
      ObjectDelete(on);
   }
}
Reason: