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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X