Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
condition for last x amount of bars in the Strategy Builder
Collapse
X
-
Hello Radano,
Thank you for your post.
This would be possible to accomplish using the Strategy Builder.
In the Strategy Builder (New > Strategy Builder), navigate to the Conditions and Actions section. Ensure the 'of the following conditions are met" drop-down menu is set to 'If All', create 3 indicator to value comparisons in the Conditions section that checks if the RSI indicator 3 bars ago is less than 0, if the RSI indicator 2 bars ago is less than 0, and if the RSI indicator 1 bar ago is less than 0. Then, in the Actions section, you would add an action of EnterLong().
See the attached screenshots and example script showing what this would look like in the Strategy Builder.
Also, see the help guide documentation below for more information.
Indicator to value comparisons: https://ninjatrader.com/support/help...lueComparisons
How to enter a market position in the Strategy Builder: https://ninjatrader.com/support/help...MarketPosition
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
66 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Thank you for your insight anyway.
Comment