PDA

View Full Version : Indicator add - remove


rgil65
07-20-2007, 09:25 AM
Hi, I would want to be able to intercept the adding and removing event of a indicator in a chart. Which the correct method in order to make this?

Tanks

NinjaTrader_Dierk
07-20-2007, 09:51 AM
You can't. However:

- Initialize is called once to set up the indicator
- Dipose is called once to destroy the indicator object (please see docs)

rgil65
07-20-2007, 10:00 AM
Unfortunately Initialize is recalled not only when I add indicator to chart, and the dispose not only when i removed the indicator from the charts.
succeed to distinguish in some way the various calls being used of the property of the indicators?

NinjaTrader_Dierk
07-20-2007, 10:02 AM
Sorry no.