Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
market flat. reset bool. per signal not strategy
Collapse
X
-
market flat. reset bool. per signal not strategy
i have multiple sets in my strategy. and, my bools are set to reset if the market is flat. they have to do with stop limit entry orders being present. however, i had another set Long. so the entry criteria for the stop limit entry was present and caused an exit before it was supposed to. is there a way to check and see if current market position by entry signal name is market position flat. then, reset the bool from that?Tags: None
-
Hello SteveReiza,
Thank you for your post.
You cannot check a market position by a specific signal name. If your strategy enters any long position, the strategy's market position will be long. If your strategy's current market position is flat, this means it is currently not in a long (or short) trade.
If the exit conditions were true before you meant them to be, you will likely need to add additional logic to prevent the exit happening when you aren't intending it to.
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
132 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
118 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment