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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        46 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        28 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        163 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        158 views
        2 likes
        Last Post CaptainJack  
        Working...
        X