![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
|
Hi
If I have a custom indicator call it myIndicator and it returnd 4 timeseries how do i access the previous bar value of the 2nd or 3rd timeseries it returns? Thanks Paul |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Paul,
Accessing historical values are always done via [] indexing. If you want the previous bar you would go [1]. To get the other exposed series you would need to access the specific series directly. myIndicator().Series2[1] myIndicator().Series3[2]
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2007
Location: , ,
Posts: 133
Thanks: 1
Thanked 0 times in 0 posts
|
Rhanks Josh
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accessing Data from custom Indicator | murfinp | Strategy Development | 4 | 04-03-2009 06:31 AM |
| Accessing Multiple Custom Indicator Plots within a Strategy | whitmark | Strategy Development | 15 | 03-28-2009 04:21 PM |
| Accessing Multi Timeframe Indicator Values | TAJTrades | Indicator Development | 11 | 03-02-2009 07:11 AM |
| Accessing value from custom indicator from strategy | funk101 | Strategy Development | 12 | 08-19-2008 08:41 AM |
| Accessing Custom Indicator Functions in Strategies | ThePatientOne | Strategy Development | 1 | 05-29-2007 01:29 PM |