Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

3 bar confirmation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #2
    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:

    Click image for larger version

Name:	ExampleBarCounter.PNG
Views:	500
Size:	39.9 KB
ID:	1145606

    [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.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X