Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Displaced Moving Averages
Collapse
X
-
Displaced Moving Averages
I see that in NT you can offset a moving average to the left or right. When you offset them to the right, is there a way to see the part of the average that is to the right (future) of the current price bar. Example: You create SMA that is offset 5 bars to the right. There should be 5 bars of average past the current bar. How can I get this to be shown? Am I missing some setting or is this something that NT cannot currently do? -
Comment
-
I know this is old, but I have a question directly related to it
I know you can displace the moving averages on the chart,
How do you do the same thing in the strategy builder?
Thanks,
- K
EDIT:
TO BE CLEAR: I want to displace my moving average precisely how it is listed in this post...to the right. However, the displacements in the Strategy Builder seem to imply offsetting the moving average up or down by price/percent/ticks. I want sideways...
Thanks again,
- K
Comment
-
So let's say I want to measure if price crosses a moving average that I want displaced by say 4 bars.
I would set the CLOSE >/crosses above MA(4)? And that would work? (pseudocode obviously). Would ">" or "crosses above" be more correct in this case?
- K
Comment
-
Hello,
I came across this thread as I am having a problem myself using the crossabove and crossbelow condition comparing 2 indicators being the second indicator displaced. My strategy was getting different results if I used the cross condition vs a simple >< condition.
I can see on the last post Bertrand replied to the previous post saying that you can not use: CrossAbove(Close, EMA(14)[Displaced], 1) in a strategy. May I ask why? Anybody using something like this with any success? Thank you.
Comment
-
Hello bertochi,
Thanks for your post.
Correct you would not be able to use the CrossAbove() or CrossBelow() methods in the case of using a displaced plot as the method does not accommodate a displaced plot.
As Bertrand had previously advised, "The CrossAbove you could not use in this case, you would need to express the condition via the <> comparisons in the Condition Builder." and "To displace to the right, just access a past indicator value, like on the CurrentBar work with the MA value from 5 bars ago - this is essentially the displacement then."
I will write up a feature request to add this ability (CrossAbove/below methods to use a displaced plot) and will update this thread when I have further information.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
548 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
549 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment