Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Condition for Strategy
Collapse
X
-
Condition for Strategy
I want to set a condition, maybe two, for my strategy, and I was wondering if it is possible with the condition builder. I will give an example; My trigger event to enter the trade would be a MACD cross, but for this to be true, condition 1- current price be 10 ticks above the lowest low of the previous 25 bars. condition 2 would be no greater than 15 ticks from same point. Thank you in advance for your assistance.Tags: None
-
Hello jacklegtrader, and thank you for your question.
This is indeed possible with the condition builder. We will make use of the offset property and the MIN indicator. I am providing help guide links for both of these.
In the same condition set as your crossover, you will want to add this condition :
You will also want this condition.Code:Left hand side: Close Bars ago 0 Offset type Ticks [B] Offset -10 [/B]Operation : > Right hand side: Indicators -> MIN Input series DefaultInput [B] Period 25[/B] Offset type Ticks Offset 0 Plot on chart False
Please let us know if there is any other way we can help.Code:Left hand side: Close Bars ago 0 Offset type Ticks Offset 0 Operation : <= Right hand side: Indicators -> MIN Input series DefaultInput [B] Period 25[/B] Offset type Ticks [B] Offset +5[/B] Plot on chart FalseLast edited by NinjaTrader_JessicaP; 05-03-2016, 07:33 AM.Jessica P.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
61 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
40 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
21 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
51 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment