Download MetaTrader 5
To add comments, please log in or register
Post web links to other trader's signals and make profit
Max Enrik
480
Max Enrik 2016.04.10 18:53 

 Hello,

I want to delete my "Fibo" which one I made it by the some indicator, but I wouldn't like to delete all "Fibo"s.

Best, Max

Alain Verleyen
Moderator
28535
Alain Verleyen 2016.04.10 21:04  
Max-Enrik:

 Hello,

I want to delete my "Fibo" which one I made it by the some indicator, but I wouldn't like to delete all "Fibo"s.

Best, Max

ObjectDelete("YOUR_FIBO_TO_DELETE");
whroeder1
13602
whroeder1 2016.04.11 13:54  
Max-Enrik: but I wouldn't like to delete all "Fibo"s.
If you mean not by code, right click -> object list or Control-B
Max Enrik
480
Max Enrik 2016.04.11 14:23  

@angevoyageur

@WHRoeder

 

Thanks for your replies.  

That is my some codes. 

int deinit() {
    ObjectsDeleteAll();
    return(0);
}

....

string vlineName = "- myVLineName - " + Time(Time[i]); 

I tried it does not work.

Alain Verleyen
Moderator
28535
Alain Verleyen 2016.04.11 14:29  
Max-Enrik:

@angevoyageur

@WHRoeder

 

Thanks for your replies.  

I tried it does not work.

I think you didn't read my answer. Try to apply what I wrote.
Max Enrik
480
Max Enrik 2016.04.11 15:00  
angevoyageur:
I think you didn't read my answer. Try to apply what I wrote.
'ObjectsDelete' - function not defined  - VLine.mq4     66      2

I have above error code.

Between I would like to  say when I delete below code that works good.

 + Time(Time[i])

 

Best.

Alain Verleyen
Moderator
28535
Alain Verleyen 2016.04.11 15:37  
Max-Enrik:

I have above error code.

Between I would like to  say when I delete below code that works good.

 

Best.

Read again what I wrote. It seems you have some difficulties to reproduce the same.

ObjectDelete("YOUR_FIBO_TO_DELETE");

 'ObjectsDelete' - function not defined  - VLine.mq4     66      2

Max Enrik
480
Max Enrik 2016.04.11 15:57  
angevoyageur:

Read again what I wrote. It seems you have some difficulties to reproduce the same.

 'ObjectsDelete' - function not defined  - VLine.mq4     66      2

Problem fixed: "ObjectsDelete" wrong, "ObjectDelete" right.

I deleted indicator on the chart, but "VLine" not removed still.

What can I do for it?

Best. 

 


I fixed like below.

ObjectsDeleteAll(0, "- myVLineName - ");
/
To add comments, please log in or register