why CHARTEVENT_OBJECT_DELETE is not working??

 

Hello guys. The problem here is really simple:

When I delete an object from the chart (using "canc" on the keyboead or mouse>right click>delete)  apparently OnCharEvent does not detect the event as the Object has been deleted.

void OnChartEvent(const int id,const long& lparam,const double& dparam,const string& sparam)
  {
   
   if(id==CHARTEVENT_OBJECT_DELETE)
      Print("object deleted");
     
  }

Can you pls tell me what is going on? Thanks

 
dario1133:

Hello guys. The problem here is really simple:

When I delete an object from the chart (using "canc" on the keyboead or mouse>right click>delete)  apparently OnCharEvent does not detect the even as the Object has been deleted.

Can you pls tell me what is going on? Thanks

Did you read the documentation?

Event Handling Functions


 
Keith Watford #:

Did you read the documentation?

Omg... after 6 hours of coding I totally forget to Set the value... Sorry for this dumb question, pls delete this topic if you want.

Thanks for you help.