I am struggling set a strategy to open a position Nth bar after the conditions are met in Strategy builder. Can someone please provide me with step by step building the strategy for a simple MA crossover? Appreciate your helo
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Open a position after Nth bar
Collapse
X
-
Open a position after Nth bar
Hello
I am struggling set a strategy to open a position Nth bar after the conditions are met in Strategy builder. Can someone please provide me with step by step building the strategy for a simple MA crossover? Appreciate your heloTags: None
-
Hello al.kooh,
Welcome to the NinjaTrader forums!
To count or do any math in the Strategy Builder it is necessary to use a Series with an offset. The offset is where arithmetic can be performed.
Below is a link to an example of counting bars in the Strategy Builder.
with regard to the attached image: Line A is an indicator Line B is the m period MAX of line A Line C is an average of this indicator A Line D is another average of this indicator A is it possible, possibly using the strategy builder, but without adding a temporary variable, to set on the condition: line C crosses below line D
As well as a link to a video on using the offset with Series.
Chelsea B.NinjaTrader Customer Service
-
Thanks for the response. It was complicated and a separate strategy. Not sure how to use it in my strategy. Is there any crossover/under strategy procedure for Nth bar after the conditions are met available?Originally posted by NinjaTrader_ChelseaB View PostHello al.kooh,
Welcome to the NinjaTrader forums!
To count or do any math in the Strategy Builder it is necessary to use a Series with an offset. The offset is where arithmetic can be performed.
Below is a link to an example of counting bars in the Strategy Builder.
https://ninjatrader.com/support/foru...on#post1078538
As well as a link to a video on using the offset with Series.
https://drive.google.com/file/d/1lwj...usp=drive_linkLast edited by al.kooh; 06-21-2023, 09:16 PM.
Comment
-
Hello al.kooh,
Add a series. On each new bar set the series value to the previous bar's value with an offset of adding 1. This will count the number of bars.
In a different condition trigger the action when the series value is N. Then set the series value to 1 to reset it.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
17 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
59 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
43 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
47 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
38 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|
Comment