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 alifarahani, 04-19-2024, 09:40 AM
    9 responses
    54 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by mmckinnm, Today, 01:34 PM
    2 responses
    5 views
    0 likes
    Last Post mmckinnm  
    Started by Conceptzx, 10-11-2022, 06:38 AM
    3 responses
    60 views
    0 likes
    Last Post NinjaTrader_SeanH  
    Started by f.saeidi, Today, 01:32 PM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by traderqz, Today, 12:06 AM
    9 responses
    16 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X