Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to Configure Look Back Period Condition
Collapse
X
-
How to Configure Look Back Period Condition
Hi, need help to configure a condition in strategy builder. I want to enter long, for example, when MACD crosses above zero line on the current bar and a doji bar has formed within a range of 10 bars. Any advice would be highly appreciated. Thanks!Tags: None
-
Hello timwey,
For the crossover condition you can use the standard crossabove or crossbelow operator for that. For the doji condition you would have to configure the individual price conditions that make up the dogji bar in your set. Alternatively you could use an indicator that produces a signal for doji bars with the builder as well.
-
Hello timwey,
To make a variable range would require manual coding, you can look up a fixed range like 10 bars in the builder. You would have to make individual price conditions to do that. For example if you wanted to check if there was a doji on the current bar you would make your price conditions using 0 bars ago. If you then also wanted to check on the previous bar you would make additional conditions for that as well using 1 bars ago. Using groups would be the best way to do that if you need to check if any one of X number of conditions had become true, for example if any one of your conditions that are looking at 0 to 10 bars ago becomes true.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment