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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        127 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        85 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        86 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X