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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    71 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    143 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    76 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    47 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    51 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X