Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Order Management
Collapse
X
-
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...
-
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=3226Josh P.NinjaTrader Customer Service
Comment
-
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
-
While your suggestion will work for just the PP what about in this case.
Where i want to do the no trade zone around PP S1-4 and R1-4Code:((Close[0] < PPLow || Close[0] > PPHigh) || (Close[0] < S1Low || Close[0] > S1High) || (Close[0] < S2Low || Close[0] > S2High))
You suggesting an if statement for each one or with this in mind is an array better? (or another way)
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment