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).

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X