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 Stanfillirenfro, Today, 07:23 AM
|
1 response
3 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
20 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment