![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Code:
double channelLow = MIN(Low, Bob); double channelHigh = MAX(High, Bob); Am I doing something wrong? KD |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Yes. MIN/MAX are indicators. To access value at most current bar try
double channelLow = MIN(Low, Bob)[0];
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Man! I thought that [0] was implicit, but adding it fixed the problem.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|