I've been making an add-in that sets the time range of all the symbols in a display automatically. My add-in works fine for adding new trends or opening old ones, but it doesn't work for ad-hoc trends.
The code I've been using is as follows:
private void ActiveDisplay_AfterSymbolAdded(Symbol aSymbol)
This event fires when an ad-hoc trend is added but, when it completes, the trend shows the default time range set by PB.
Anyone have any ideas?
Please take a look at this discussion thread. It seems to be talking about your exact issue here.
Retrieving data ...