Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Close Position on Bar Color Change
Collapse
X
-
Close Position on Bar Color Change
Can I potentially close or flatten an open position as soon as an opposite-color reversal bar begins to form? To elaborate, if I'm currently holding a long position and the current bar starts turning red, even before it's fully closed, am I allowed to promptly close or flatten my position?Tags: None
-
Hello pickles1774,
Thank you for your post.
This could be done as long as the strategy is set to calculate either OnPriceChange or OnEachTick:
Then you could consider using IsRising() or IsFalling() as part of your exit condition to detect if the price changes directions:Please let us know if we may be of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
92 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
138 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
121 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
72 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment