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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
152 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
89 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
131 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
127 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment