![]() |
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: Mar 2009
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
Would anyone help me how to plot the max range(H-L) of the last 3 bar ? Is there any maxlist or minlist function ?
I try to use this but it does not work : Max(Range(),3) Thanks |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,409
Thanks: 252
Thanked 975 times in 958 posts
|
Hi Winnie, please try this snippet-
Code:
double myRange = MAX(Range(), 3)[0];
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2009
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
|
it works well ! thanks
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MaxList | Mindset | General Programming | 3 | 11-06-2008 10:31 AM |
| Use of Log function | MicroAl | General Programming | 4 | 05-07-2008 12:50 PM |
| Use of the merge function | ryker | Miscellaneous Support | 11 | 03-29-2008 02:21 PM |
| a function that does this | HelloHello | Automated Trading | 1 | 09-13-2007 03:24 AM |
| playback function | jc3 | Suggestions And Feedback | 4 | 04-06-2005 11:35 AM |