Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder - Breakout based on time and range

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

    Strategy Builder - Breakout based on time and range

    Hi

    I am trying to use strategy builder to test the following:

    Define range between 7:15am and 8:15am and if the range is between 5 and 20 ticks, then trade is in play and if outside that range, no trade.

    If trade is in play, then I need to define the range, for example if NQ high and low during the timeframe was 7040 and 7030 then the range would be 10.
    I would then set an order to go long at 7041 with a 10tick TP or short at 7029 with a 10tickTP.

    I can not figure out how to use the strategy builder to determine the size of the range.

    Any help is much appreciated.

    thanks

    #2
    Hello tarheelfutures,
    Thanks for your post and welcome to the NinjaTrader Support Forum.

    Are you simply trying to compare the value for range to a static value?
    Is this value meant to be dynamic and changing for each use of the strategy?

    The screenshot is how I would make a condition that checked if the range is greater than or equal to 5.
    Attached Files
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh for the quick reply.

      The value is meant to be dynamic and change each time the strategy is used.

      Example, on Monday from 7:15 to 8:15 NQ had a high of 7010 and low of 6990 so the range would equal 20

      Comment


        #4
        I am not sure how you would be able to do this since the Strategy Builder is not capable of math. I suggest creating an input in the Strategy Builder that you would be able to set inside the strategies parameters. I am including two links below that will be useful to you in creating your logic.

        How to make indicator to value comparisons in the Strategy Builder

        How to create time filters in the Strategy Builder

        You will want to create a condition that includes the concepts from both above links.
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        12 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        11 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        7 views
        0 likes
        Last Post nandhumca  
        Started by The_Sec, Today, 03:37 PM
        0 responses
        3 views
        0 likes
        Last Post The_Sec
        by The_Sec
         
        Started by GwFutures1988, Today, 02:48 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X