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 samish18, Yesterday, 10:13 AM
|
1 response
22 views
0 likes
|
Last Post Today, 06:15 PM | ||
Started by Austiner87, Today, 05:02 PM
|
0 responses
5 views
0 likes
|
Last Post
by Austiner87
Today, 05:02 PM
|
||
Started by tonynt, 05-21-2019, 06:27 AM
|
10 responses
530 views
1 like
|
Last Post
by fiendtrades
Today, 04:29 PM
|
||
Started by awwenzovs, Today, 08:03 AM
|
2 responses
15 views
0 likes
|
Last Post Today, 04:27 PM | ||
Started by Ashkam, 04-29-2024, 09:28 AM
|
4 responses
44 views
0 likes
|
Last Post
by Ashkam
Today, 02:38 PM
|
Comment