Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Can I make the SMA indicator look back x bars?
Collapse
X
-
It already does that.
That's exactly what the '10' in SMA(10) means.
The '10' is the period, it represents the number
of bars to lookback when deciding how many
bars to include in the calculation.
The number of bars is a 'moving window', since
when a new bar closes, the oldest bar is dropped
from the calculation -- the 'moving window' is always
moving to the right -- that's why these kinds of
indicators are called moving averages.
All indicators that come with NinjaTrader, including
the SMA indicator, will work on any kind of chart
type -- so SMA(10) works exactly as you'd expect
on a 1, 5, or 10 minute chart.
Make sense?

- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
26 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
26 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
30 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
18 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
||
|
Started by Mindset, 03-23-2026, 11:13 AM
|
0 responses
29 views
0 likes
|
Last Post
by Mindset
03-23-2026, 11:13 AM
|

Comment