CHARTEVENT_CUSTOM, how to set it?

 

Hi guys,

I am wondering how is the right way to create and firing a custom event.

My doubt is: if someone want to handle the event in his own EA how can intercept the event? Do I need to tell him the value?

(like:

ushort event_newBar=CHARTEVENT_CUSTOM+5;
...
EventChartCustom(ChartID(),event_newBar,0,0,"");



If the EA will use 2 same indicators with different parameters, how is possible to know which does the event come from? 

Reason: