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 cmoran13, Yesterday, 01:02 PM
|
0 responses
30 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
22 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment