Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

work with time

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

    work with time

    Hello,
    very simple question, if I use:

    ...
    if(Time[0].Hour >=0 && Time[0].Minute >= 0)
    {
    if(Time[0].Hour <= 24 && Time[0].Minute <= 0) ...

    will I get trades all the time?

    I need that to see in practice (it already improved my system when testing it in excel) when trades may be opened but I need to compare the results to some older version of the script so I need first test it with this feature (trades enabled all the time) on.

    Thank you and sorry for your time on such a stupid question
    N.

    #2
    nicknamed, yes that should allow trading for the full 24 hr session - if you don't want to limit trading to certain times, just remove the time filter rules altogether and ensure session begin and end are set to the defaults (24 hrs).
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Rogers101, 05-05-2024, 11:30 AM
    16 responses
    50 views
    0 likes
    Last Post Rogers101  
    Started by ninza33, Today, 12:31 PM
    2 responses
    9 views
    0 likes
    Last Post ninza33
    by ninza33
     
    Started by Bobin, 03-12-2024, 08:51 AM
    15 responses
    481 views
    0 likes
    Last Post fiddich
    by fiddich
     
    Started by Skifree, Today, 11:21 AM
    4 responses
    15 views
    0 likes
    Last Post Skifree
    by Skifree
     
    Started by Bogdan097, Today, 03:25 PM
    0 responses
    8 views
    0 likes
    Last Post Bogdan097  
    Working...
    X