Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

data of an indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    data of an indicator

    How to access the data of an indicator.
    I try to access the price of the emas of the Kelner channel indicator, it is already added but no matter how much I look I don't know how to call the values​

    #2
    Hello, thanks for writing in. The Keltner Channel Has two SMA indicators. To access these you would need to create a copy of the Keltner Channel and create public Series for these two SMAs. We have an example of how to do this here:

    Chris L.NinjaTrader Customer Service

    Comment


      #3
      else if (State == State.DataLoaded)
      {
      EMALarga = EMA(Close, Convert.ToInt32(MediaLarga));
      EMALarga.Plots[0].Brush = Brushes.YellowGreen;
      AddChartIndicator(EMALarga);

      EMAMedia = EMA(Close, Convert.ToInt32(MediaMedia));
      EMAMedia.Plots[0].Brush = Brushes.DeepSkyBlue;
      AddChartIndicator(EMAMedia);

      EMACorta = EMA(Close, Convert.ToInt32(MediaCorta));
      EMACorta.Plots[0].Brush = Brushes.Azure;
      AddChartIndicator(EMACorta);

      CanalK = KeltnerChannel(1.5, 10);
      CanalK.Plots[0].Brush = Brushes.DarkOrange;
      CanalK.Plots[1].Brush = Brushes.Crimson;
      CanalK.Plots[2].Brush = Brushes.Crimson;
      AddChartIndicator(CanalK);
      }​​

      Here I have it replicated

      Print(CanalK[0]);
      and here I ask and it gives me the price of the central ema of the channel, but I don't know how to ask for the other two

      Comment


        #4
        Hi, the upper and lower values can be accessed through .Upper[] and .Lower[] series arrays.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          muchas
          gracias

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Schools, Yesterday, 03:32 PM
          1 response
          14 views
          0 likes
          Last Post Schools
          by Schools
           
          Started by Mindset, Today, 09:58 AM
          0 responses
          2 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by michelz, 02-18-2025, 08:30 AM
          17 responses
          326 views
          0 likes
          Last Post Noongun
          by Noongun
           
          Started by llanqui, 03-05-2025, 06:03 AM
          21 responses
          120 views
          0 likes
          Last Post bltdavid  
          Started by kujista, 03-13-2025, 12:41 AM
          8 responses
          45 views
          0 likes
          Last Post kujista
          by kujista
           
          Working...
          X