• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    JoshNinjaTrader 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.
        JoshNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by dariuszszyc, Today, 09:08 AM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_JoshG  
        Started by Sadat, Today, 09:09 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_JoshG  
        Started by login_dejavu, Today, 07:57 AM
        4 responses
        19 views
        0 likes
        Last Post login_dejavu  
        Started by Lender, Yesterday, 05:15 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by rcmcd, Today, 07:52 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Working...
        X