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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
55 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
142 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment