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
Help with a multi time frime indicator
Collapse
X
-
Help with a multi time frime indicator
I need help with an indicator with multi time frame, please. The first thing I do is look for the ATR of the last 3 days and from these values drawing a line in the graph above and below yesterday's closing and opening today, but when I put it on a chart 5 minutes indicator does nothing. ThanksLast edited by Joanhp; 04-22-2016, 02:28 AM.Tags: None
-
Hello Joanhp,
Thank you for writing in and welcome to the NinjaTrader Support Forum.
When applying your indicator to a chart, I've noticed that an error appears in the log tab: "You are accessing an index with a value that is invalid since its out of range."
You need to make sure that you have enough bars before attempting to access the secondary series: http://ninjatrader.com/support/forum...ead.php?t=3170
As we are dealing with a multi-series script, you'll need to use CurrentBars[1] rather than CurrentBar to check the secondary series: https://ninjatrader.com/support/help...urrentbars.htm
Additionally, I have noticed that you are using a barsAgo value of -1 and -2 for atr1 and atr2. If you are trying to obtain past values, you will need to use a barsAgo value of 1 and 2.
Please, let us know if we may be of further assistance.Zachary G.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,404 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
95 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
8 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
159 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
8 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment