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 argusthome, 03-08-2026, 10:06 AM
|
0 responses
110 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
37 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
78 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment