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 Davidtowleii, Today, 12:15 AM
|
0 responses
3 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
||
Started by guillembm, Yesterday, 11:25 AM
|
2 responses
9 views
0 likes
|
Last Post
by guillembm
Yesterday, 11:58 PM
|
||
Started by junkone, 04-21-2024, 07:17 AM
|
9 responses
68 views
0 likes
|
Last Post
by jeronymite
Yesterday, 11:51 PM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
4 responses
20 views
0 likes
|
Last Post Yesterday, 10:33 PM | ||
Started by mgco4you, Yesterday, 09:46 PM
|
1 response
11 views
0 likes
|
Last Post Yesterday, 09:56 PM |
Comment