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 NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
100 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
156 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
84 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
57 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
73 views
0 likes
|
Last Post
|

Comment