Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.Brandon H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by josh18955, 03-25-2023, 11:16 AM
|
6 responses
436 views
0 likes
|
Last Post
by Delerium
Today, 03:42 PM
|
||
Started by FAQtrader, Today, 03:35 PM
|
0 responses
5 views
0 likes
|
Last Post
by FAQtrader
Today, 03:35 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
5 responses
18 views
0 likes
|
Last Post Today, 03:33 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
9 responses
127 views
1 like
|
Last Post
by caryc123
Today, 03:12 PM
|
||
Started by selu72, Today, 02:01 PM
|
1 response
14 views
0 likes
|
Last Post Today, 02:17 PM |
Comment