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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    57 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    35 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    19 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    8 views
    0 likes
    Last Post cre8able  
    Working...
    X