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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
81 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
149 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
59 views
0 likes
|
Last Post
|

Thank you for your insight anyway.
Comment