Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Market Position + delay?
Collapse
X
-
Hello kenb2004,
You can use the TradeCollection to check what position you were in previous but you would have to do a check for what bar that it was on. So it may be easier for you to create a BoolSeries for easier access.JCNinjaTrader Customer Service
-
Hello kenb2004,
You would have to create a BoolSeries named Flat but yes it is possible. For Example:
Code:#Variable private BoolSeries Flat; Initialize(): Flat = new BoolSeries(this); OnBarUpdate(): Flat.Set(MarketPosition.Flat == Position.MarketPosition ? true : false);
JCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
91 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
92 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
70 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
87 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
64 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment