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
3 bar confirmation
Collapse
X
-
3 bar confirmation
I am not a coder by any means. Even trying to use the strategy builder is difficult for me. I am simply trying to tell the strategy to go long after crossing up and over the 233 EMA, but wait for 3 bars closing above it. How do I do this? Thanks!Tags: None
-
Hello army11b1980,
Thanks for your post and welcome to the NinjaTrader forums!
Counting bars in the Strategy Builder is difficult to do. I'll attach an example of how you can create a bar counter in the strategy builder using 2 custom series. Please download, install and examine/test and then use the concepts in your strategy.
In the Strategy ExampleBarCounter, the sequence of Sets 1 to set 2 is important. Set 3 is an example of a cross condition where the bar number is saved into a series and the strategy draws a vertical line on the chart. Set 4 demonstrates an action (drawing a dot on the chart) when 10 bars have passed after the cross event.
Here is a screenshot of the ExampleBarCounter in use:
[ATTACH]n1145607[/ATTACH]
Also, here are the resources for the Strategy Builder if you have not seen them:
Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htmPaul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by leonardomocci, Today, 08:28 AM
|
0 responses
1 view
0 likes
|
Last Post Today, 08:28 AM | ||
Started by geotrades1, Today, 07:54 AM
|
4 responses
9 views
0 likes
|
Last Post Today, 08:27 AM | ||
Only display optimization results that has number of trades between a range (min max)
by prisonbreaker82
Started by prisonbreaker82, 02-24-2024, 11:16 AM
|
3 responses
36 views
0 likes
|
Last Post Today, 08:22 AM | ||
Started by bill2023, Today, 08:21 AM
|
0 responses
3 views
0 likes
|
Last Post
by bill2023
Today, 08:21 AM
|
||
Started by KonAdams, Yesterday, 10:53 PM
|
1 response
12 views
0 likes
|
Last Post Today, 08:21 AM |
Comment