![]() |
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 |
|
Senior Member
Join Date: Jan 2009
Posts: 216
Thanks: 0
Thanked 1 time in 1 post
|
The help guide on using MAX is the following:
MAX(IDataSeries inputData, int period)[int barsAgo] My question is on the [int barsAgo] if barsAgo is not 0. I use barsAgo =15 as an example; MAX(High, 40)[15], i should get the highest high for the bars between 54 and 15, NOT highest high for most recent 40 bars. In other wors, the period is started at barsAgo and is counted further into the past by 'period' amount. Is this understaning correct? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,381
Thanks: 252
Thanked 966 times in 949 posts
|
You got it binwang2.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MAX Function | snaphook | General Programming | 4 | 02-04-2009 05:56 AM |
| Max | nigeleyre | Strategy Development | 1 | 01-05-2009 01:24 PM |
| Using MAX with Crossover | zeller4 | Indicator Development | 1 | 11-20-2008 09:40 AM |
| Max/Min List | nfeldberg | General Programming | 2 | 07-16-2008 01:22 PM |
| Min / Max | mydet | Indicator Development | 1 | 05-31-2007 04:47 AM |