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 NullPointStrategies, Today, 05:17 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
119 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment