Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time Filter

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

    Time Filter

    Hello,

    I found a part of a script I have no idea how to interpret. Can you help me with the meaning?

    #region Variables
    // Wizard generated variables

    private int InitialTime = 800; // Default setting for HoraInicio
    private int timeFilter = 100; // Default setting for TimeFilter

    protected override void OnBarUpdate()
    if(ToTime(Time[0])>=InitialTime*100&&ToTime(Time[0])<=InitialTime*100+TimeFilter*100)

    What is the exact meaning of TimeFilter here? What does it do to the strategy?

    Thanks a lot

    Sincerely

    #2
    While I can't say for sure without being the developer it looks like they use this variable to add a "buffer" time to the end.

    In other words they have the initial start time, any times greater than this fall into the filter
    They then take this initial time and add the time filter amount to it to determine how long the filter should last for.

    Let me know if I can further assist.
    LanceNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    156 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    76 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X