PropagateIntervalChange()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Add On >

PropagateIntervalChange()

Previous page Return to chapter overview Next page

Definition

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

 

Notes:

1.A public Instrument property must be defined in order to use PropagateInstrumentChange(), as in the example below

2.For a complete, working example of this class in use, download framework example located on our Developing AddOns Overview

 

Example

ns

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