Asking the question in different way, can you retrieve the time of something on strategy builder and assign it to a variable?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Assigning Time to entry and indicator
Collapse
X
-
Assigning Time to entry and indicator
I am using strategy builder, is it possible to assign a variable to the time of entry? and the time the swing indicator creates a new low or high? Example of what im trying to do going long. If the swing low is created after my entry time then move my stop to the low of that swing.
Asking the question in different way, can you retrieve the time of something on strategy builder and assign it to a variable?Tags: None
-
Hello jpgombot,
Using time in the builder i fairly limited, while you can set a time variable you cannot set a variable to a dynamic value like the current series time, you have to know a specific time. For example lets say your swing condition becomes true and you want to save the current time at that point, that would require manual coding. You could set a specific time, for example if your condition is checking if the bar time is 9:30 to make the condition true, when it does come true you could set a variable to another predetermined time like 10:30 as an example.
Most time operations in the builder would revolve around comparisons, like checking if a bar time is equal to a predefined time or checking if a bar time is within a time window. For more complex time operations that would require manual coding.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment