Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Builder Help with Basic Pullback
Collapse
X
-
Strategy Builder Help with Basic Pullback
I'm looking to create a pullback trade that works something like this in a simplified fashion. Price breaks a MA pulls back to said MA within X bars then Enter position when bar closes above that X bar high. You have bars ago which points at exact bars but I'm having trouble wrapping my head around how you look can at some bar series.Tags: None
-
Hello synthhokie,
Thanks for your post.
You could accomplish your goal by using a bool variable (it is either true or false) and an int type variable to be used as a bar counter.
When the crossover condition occurs, you would set the bool true and set the bar counter to 1.
While the bool is true and the bar count is less than whatever you want it to be, check to see the relation of price to the moving average and when your entry condition is true place the entry order and set the bool back to false, otherwise increment the bar counter and keep checking until the counter is equal to your x and then set the bool false.
-
How do I setup the bar counter? I can create the int variable but how does it "Count" so to speak.
Comment
-
Hello synthhokie,
Thanks for your reply.
If you are using the Strategy Builder in NinjaTrader8 then it is possible to do a bar counter but it is advanced topic.
If you are using the NinjaTrader7 Strategy wizard then it cannot be done.
So let's find out which one you are using and go from there.
Comment
-
-
Hello synthhokie,
Thanks for your reply.
The topic has been moved.
Here is a link to a thread where I posted an example bar counter for the strategy builder: https://ninjatrader.com/support/foru...r-confirmation
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
93 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
123 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
73 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment