New to strategy builder and don't know an input from a variable, but want this strategy to auto execute eventually. I'm using NinjaTrader 7.
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
5 Consecutive Green Bars
Collapse
X
-
5 Consecutive Green Bars
I've searched and scrolled here but cannot find a strategy for say 5 consecutive up (Green) bars, or 5 consecutive down (Red) bars.
New to strategy builder and don't know an input from a variable, but want this strategy to auto execute eventually. I'm using NinjaTrader 7. -
Hello b2fnow,
Thanks for your post.
Based on your last comment we have moved the post to the NT7 strategy forum.
With NinjaTrader you have two indicators that would help with this, they are called NBarsUp and NBarsDown where you can configure them for the number of sequential bars desired. As the condition is found the indicator outputs a value of 1 into an indicator panel.
References:
NBarsUp: https://ninjatrader.com/support/help...?n_bars_up.htm
NBarsDown: https://ninjatrader.com/support/help..._bars_down.htm
I recommend that you place them on your chart to both observe and test their function to ensure their suitability for your strategy.
You can use these methods in the NT7 strategy wizard. In a condition set, on the left side under indicators you would select NBarsUp (or NBarsDown) and specify the number of sequential bars to check for in "Bars count", in the center would select "==" and then on the right side you would select MISC>Numeric value and set the number to 1 which is what the indicator provides when the condition is found. Then you can place an order in the action section.Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kempotrader, Today, 08:56 AM
|
0 responses
6 views
0 likes
|
Last Post
by kempotrader
Today, 08:56 AM
|
||
Started by kempotrader, Today, 08:54 AM
|
0 responses
4 views
0 likes
|
Last Post
by kempotrader
Today, 08:54 AM
|
||
Started by mmenigma, Today, 08:54 AM
|
0 responses
2 views
0 likes
|
Last Post
by mmenigma
Today, 08:54 AM
|
||
Started by halgo_boulder, Today, 08:44 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 08:44 AM | ||
Started by drewski1980, Today, 08:24 AM
|
0 responses
4 views
0 likes
|
Last Post
by drewski1980
Today, 08:24 AM
|
Comment