Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Management

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

    #16
    Hi cirion, since this is a big 'or else' statment some condition will return true and therefore prevent this from being the filter you like to have for your 'deadzones' approach. Are you splitting between long / short no tradezones, or is it a more general idea? Otherwise you could simply create the no trade levels for the day and set a bool variable false when price is in those areas...

    Comment


      #17
      There is no difference between sell and buys just a complete deadzone. What would be the easiest way to create those no trade levels in your opinion

      Comment


        #18
        cirion,

        Not sure what you mean exactly. If you don't want to trade in certain times I suggest you introduce a time filter and completely prevent any of your trading logic from processing within those times. http://www.ninjatrader-support2.com/...ead.php?t=3226
        Josh P.NinjaTrader Customer Service

        Comment


          #19
          Thanks for the reply josh,

          An example of what i am after is this.

          Lets say the PP is 900.00 for the day i want a 5 * TickSize around the PP to be a no trade zone. So if Close[0] = any number between 901.25 down to 898.75 there will be no trades taken.

          Hope that made sense.
          Last edited by cirion; 01-15-2009, 01:58 PM.

          Comment


            #20
            Bracket your trade logic with an if-statement then.

            Code:
            if (Close[0] > 901.25 || Close[0] < 898.75)
            {
                 // some logic
                 EnterLong();
            
                 // other logic
                 EnterShort();
            }
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              While your suggestion will work for just the PP what about in this case.

              Code:
              ((Close[0] < PPLow || Close[0] > PPHigh) || (Close[0] < S1Low || Close[0] > S1High) || (Close[0] < S2Low || Close[0] > S2High))
              Where i want to do the no trade zone around PP S1-4 and R1-4

              You suggesting an if statement for each one or with this in mind is an array better? (or another way)

              Comment


                #22
                It doesn't matter how you do it. There are many ways to skin a cat. You understand the general concept and as such it is just a matter of implementing it.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                558 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                324 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                101 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                545 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                547 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X