![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Nov 2011
Posts: 55
Thanks: 18
Thanked 3 times in 3 posts
|
Hi!
I was wondering about using lists. Is there any example where I can see its use? I'm trying to solve this problem: (I don't know the proper syntax, but I'm trying to make it clear) 1. I have identified a bar (i bars ago) and I want to do a search around that bar to get its highest high, for example in the range (i +r ----> i-r). 2. I can create some kind of list and add the elements: for (int x= i-r,x < i+r+1;x++) add (high[x], highlist); 3. Then sort with the proper command to get the maximum.: GetHighOfList(highlist) Perhaps there is a native function to do this but I've searched and didn't see anything. Thanks in advance, Sergio |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exporting Instrument Lists | Tryder | Market Analyzer | 1 | 05-06-2010 03:30 AM |
| Instrument lists | ct | Version 7 Beta General Questions & Bug Reports | 5 | 10-07-2009 09:23 AM |
| Use of Instrument Lists | nomlas | SuperDOM and other Order Entry Windows | 3 | 07-31-2008 06:24 AM |
| Favorites lists | Speedie6 | Miscellaneous Support | 1 | 04-23-2008 09:22 PM |
| Parameter selection lists | ThePatientOne | Indicator Development | 3 | 05-11-2007 08:48 AM |