Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bollinger Band Opposite Direction

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

    Bollinger Band Opposite Direction

    Bollinger(numStdDev: 2, period: 14)

    How can I detect this condition is met in strategy?

    The bands are in OPPOSITE directions


    #2
    Hello talkwaqar,

    Thanks for your post and welcome to the forums!

    To test for opposite direction of Bollinger lines you could use the check of Rising() and Falling() of each line. For example:

    if (Falling(Bollinger(2,14).Lower) && Rising(Bollinger(2, 14).Upper))
    {
    // do something here if lines in expansion/opposite direction
    }

    References:
    http://ninjatrader.com/support/helpG...7/?falling.htm
    http://ninjatrader.com/support/helpG...t7/?rising.htm

    Comment


      #3
      Thanks for your reply one last thing

       CCI: Period -14 / Overbought 200

      Also CCi must be on OVERBOUGHT


      Comment


        #4
        Hello talkwaqar,

        Thanks for your reply.

        The condition code would be CCI(14)[0] > 200.

        Note: An easy way to determine these is to use the strategy wizard to create the condition and then click on "view code". Reference: http://ninjatrader.com/support/helpG...egy_wizard.htm

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        132 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        74 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        117 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        113 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        89 views
        0 likes
        Last Post CarlTrading  
        Working...
        X