Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Look back period for cross above or below
Collapse
X
-
Look back period for cross above or below
How do i get the look back period for a cross above or below to be zero (or the most recent closed bar)? it seems to default to 1 and changes automatically to 1 if i try to change it to zero.
Tags: None
-
Hello ageeholdings,
Thank you for your post.
A single timestamp tells you nothing about the direction of movement—only the current relationship between both sides of your comparison.
You need at least one earlier sample to distinguish “we’re currently above” from “we just crossed above”.
A look back period of 1 would check for the cross within the last bar.
Here are the Help Guide pages for the CrossAbove and CrossBelow methods where you will see that a look-back period is necessary:Please let me know if I may be of any further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
128 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
117 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment