How can I get data from custom indicators? I download a few indicators and install them on my NT7, but how to get data from their bars?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
getting data from custom indicator
Collapse
X
-
Also I trying to get data from different futures, in my multiindicator.
For example from 6B 6-11 (British Pound) , 6S 6-11, 6E 6-11 and etc.
I try to use Add("6B", PeriodType.Minute, 1);
or Add("6B 6-11", PeriodType.Minute, 1);
But I see phrase 6B 6-11 does not exists on instrument manger, But I know that all futures exists there because I have add them here.
Comment
-
Thanks a lot it was the reason of my troubles.Originally posted by NinjaTrader_Bertrand View PostPlease try adding those as 6B 06-11 to use the correct expiry.
Also I want to get data from different time frames for different futures. So I use such code
Add("6J 06-11", PeriodType.Minute, 1);
Add("6J 06-11", PeriodType.Minute, 5);
Add("6J 06-11", PeriodType.Minute, 15);
Add("6J 06-11", PeriodType.Minute, 30);
Add("6J 06-11", PeriodType.Minute, 60);
And when user change time frame I use such code
if (BarsPeriod.BasePeriodType==PeriodType.Minute&&Bar sPeriod.Value==5)
z=Closes[2][0]-Opens[2][0];
And I have message in log of control center - You accessing an index with a value is invalid since ***.
What does it mean? This data is unaccessable?
Comment
-
Ok but I use zero Bar. Everything works good on 1 minute time frame but when I try another ones I have a troubles.Originally posted by NinjaTrader_Bertrand View PostGreat - please ensure you have a CurrentBars check running for all involved bars objects -
http://www.ninjatrader.com/support/f...ead.php?t=3170
Comment
-
It does not matter, please do include the check for all involved series like below -Originally posted by daglas View PostOk but I use zero Bar. Everything works good on 1 minute time frame but when I try another ones I have a troubles.
if (CurrentBars[0] < 0 || CurrentBars[1] < 0 .....) return;
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
601 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment