SMA(BarsArray[2], (High,10))[0]
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
sma barsarray
Collapse
X
-
Hello zachj,
The parameters that you are trying to pass into SMA are incorrect.
I believe you are trying to pass in the High DataSeries of Index 2 and get a value back. For that you will want to use Highs[] not BarsArray[].
For example:
Or if you just want to use the Close of Index 2 it would be:Code:SMA(Highs[2],10)[0];
Code:SMA(BarsArray[2],10)[0];
JCNinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
125 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
85 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
84 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment