if (Position.MarketPosition == MarketPosition.Flat && CrossAbove(Close, highestHigh, 1)) EnterLong();
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CrossAbove
Collapse
X
-
could you tell me what the difference would be in terms of catching a cross above?
CrossAbove(Close, highestHigh, 0) vs CrossAbove(Close, highestHigh, 1)
maybe this should be another topic? but would
if (Time[0].TimeOfDay >= endOfDay.TimeOfDay)
catch the end of day as soon as the current tick time was >= endOfDay.TimeOfDay?Last edited by dibDab; 10-16-2023, 09:33 AM.
Comment
-
Hello dibDab,
You would have to make a condition that checks if the Close is less than or greater than a variable. After doing that check you would set the close to the variable again to repeat that process. The CrossAbove and Below rely on the bar data, you never would be comparing two ticks when using bar data as you only have access to the current tick or the previous bars close depending on the BarsAgo used.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
13 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
59 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
42 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
47 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
38 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment