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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        476 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        317 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        254 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        340 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        305 views
        0 likes
        Last Post CarlTrading  
        Working...
        X