Create IndicatorShared with this code in it:
public System.Guid guid = System.Guid.NewGuid();
IndicatorShared ind; protected override void OnBarUpdate() { if (ind == null) { ind = IndicatorShared(); ind.Update(); Print("Shared guid: "+ind.guid.ToString()); } }
Put Indicator1 and Indicator2 on a chart.
Output:
Shared guid: c685b595-f614-4685-9515-2ce0e502dea6
Shared guid: 6131b9cd-73a9-4cf5-acbe-802ad6db4bc5
It appears they are using two different instances. Why?
Comment