Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition that compares a range

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

    Condition that compares a range

    I'm trying to set up a range comparison. Something to this effect:

    If High[0] is within (+/-) 10 ticks of the Bollinger Band Middle.. do something, else do nothing.

    I also want to do something like this:

    If the distance between the upper band and lower band is 20 ticks or less, do something, else do nothing (checking for consolidated market here).

    How can I set these types of comparisons up in Strategy Builder?

    Thanks.

    #2
    Hello chaddweston,

    In the builder on the conditions and actions page, you would create a new condition>Indicator>Bollinger and set the Value Plot to Middle, then under properties you’ll add an offset of 10 ticks. You could then set the operator to < and on the right side of the condition select High in the price folder. Then add another condition, set up like the one above, except subtract 10 ticks. When this condition is true, the do the following will be ran, if its not true, nothing will be done.

    To check if the upper and lower band distance is less than 20 ticks, you could select Bollinger Band upper plot as explained above, subtract 10 tick offset, then set an operator of <, and on the right side of the condition builder select Bollinger and lower plot.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jewelkulas, Today, 10:30 PM
    0 responses
    3 views
    0 likes
    Last Post jewelkulas  
    Started by jc.am, Today, 07:59 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by ybhx0315, Today, 09:06 PM
    0 responses
    9 views
    0 likes
    Last Post ybhx0315  
    Started by parkinsonbr, Today, 08:23 PM
    0 responses
    6 views
    0 likes
    Last Post parkinsonbr  
    Started by i2w8am9ii2, Today, 04:36 PM
    2 responses
    16 views
    0 likes
    Last Post i2w8am9ii2  
    Working...
    X