Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.Paul H.NinjaTrader Customer Service
Comment
-
Hello bertochi,
The feature request to have the strategy builder use displacement plots in the CrossAbove/CrossBelow has been assigned to SFT-1638.
Feature requests are submitted for possible implementation in the future. There is no guarantee this will be included in a future release.Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
1 view
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
4 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
46 views
0 likes
|
Last Post Today, 12:28 AM | ||
Started by f.saeidi, Today, 12:12 AM
|
0 responses
6 views
0 likes
|
Last Post
by f.saeidi
Today, 12:12 AM
|
Comment