Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

nBarsUp/nBarsDown / maximum x bars

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

    nBarsUp/nBarsDown / maximum x bars

    Hello,

    i have a question regarding a strategy build.

    I want to go short with an break of every 5 minute bar as long we had not more than e.g. 2 upcandles in the selected time frame for the day.
    How can i do this ?

    with nBarsUP/down i look for a "minimum" of x up or down bars.
    Can i also set the condition somehow to work as "maximum" ?

    thank you for your support

    #2
    nt2010, I believe you can work with CountIf to test for this occurence during your time periods of the day - http://www.ninjatrader-support.com/H...6/CountIf.html
    Last edited by NinjaTrader_Bertrand; 08-26-2010, 12:12 PM.

    Comment


      #3
      Bertrand, thank you for this great hint. This was exactly what i was looking for.

      nt2010

      Comment


        #4
        You're welcome, great that helped you realize your task.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        161 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        311 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X