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 rhyminkevin, Today, 04:58 PM
    4 responses
    52 views
    0 likes
    Last Post dp8282
    by dp8282
     
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    50 views
    0 likes
    Last Post futtrader  
    Working...
    X