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 argusthome, 03-08-2026, 10:06 AM
    0 responses
    77 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    27 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X