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
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
data of an indicator
Collapse
X
-
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:
https://ninjatrader.com/support/help...alues_that.htmChris L.NinjaTrader Customer Service
-
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
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by haakonflaar, 11-24-2023, 06:51 PM
|
6 responses
33 views
0 likes
|
Last Post
![]()
by haakonflaar
Today, 02:49 PM
|
||
Started by rickesh, Today, 01:56 PM
|
1 response
16 views
0 likes
|
Last Post
|
||
Started by cbatson89, Today, 01:37 PM
|
5 responses
17 views
0 likes
|
Last Post
|
||
Started by karl_model, Today, 01:20 PM
|
1 response
13 views
0 likes
|
Last Post
|
||
Started by orestejr, Today, 11:58 AM
|
4 responses
25 views
0 likes
|
Last Post
![]()
by orestejr
Today, 01:19 PM
|
Comment