Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assigning Time to entry and indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    79 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X