Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CrossOver not detected
Collapse
X
-
sharpie,
There is no test for both of these. If you want to know what happens intrabar you have to use CalculateOnBarClose = false. CrossAbove/Below conditions do not check current tick versus previous tick though. It checks last tick versus previous bar or whichever bar the lookback period is set to.
You would need to keep track of the previous tick yourself to be able to check current tick versus last tick for crosses.Josh P.NinjaTrader Customer Service
Comment
-
Back to my original question. OnBarClose, I tested first for CrossBelow and exited any long position I may have had (I didn't have one). Then I tested for CrossAbove and triggered a buy. This morning I reversed the order of the two tests. On that basis, the CrossAbove should still trigger a buy, but the test for CrossBelow should also be positive (was the last crossover to occur) and cancel the long entry. Y/N?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ct, 05-07-2023, 12:31 PM
|
6 responses
202 views
0 likes
|
Last Post
by wisconsinpat
Today, 06:29 AM
|
||
Started by kaywai, Today, 06:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by kaywai
Today, 06:26 AM
|
||
Started by kevinenergy, 02-17-2023, 12:42 PM
|
118 responses
2,778 views
1 like
|
Last Post
by kevinenergy
Today, 05:41 AM
|
||
Started by briansaul, Today, 05:31 AM
|
0 responses
9 views
0 likes
|
Last Post
by briansaul
Today, 05:31 AM
|
||
Started by traderqz, Yesterday, 12:06 AM
|
11 responses
28 views
0 likes
|
Last Post Today, 05:11 AM |
Comment