PropagateIntervalChange()

View as Markdown

Definition

In an NTWindow, PropagateIntervalChange() sends an interval to other windows with the same Interval Linking color configured.

  • A public BarsPeriod property must be defined in order to use PropagateIntervalChange(), as in the example below.
  • For a complete, working example of this class in use, download the framework example located on our Developing AddOns Overview.

Examples

1// This custom method will be fired when an interval selector in a custom NTTabPage changes intervals
2private void OnIntervalChanged(object sender, BarsPeriodEventArgs args)
3{
4 if (args.BarsPeriod == null)
5 return;
6
7 PropagateIntervalChange(args.BarsPeriod);
8}