Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set up different trading time intervals?

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

    How to set up different trading time intervals?

    For my current trading setup, I have a time interval when the trading is active. The way I am setting it is as follows

    Code:
    Times[Default input[0].TimeOfDay >= new TimeSpan(1, 0, 0)
    Times[Default input[0].TimeOfDay <= new TimeSpan(14, 0, 0)
    This allows trading from 1 AM - 2 PM.

    However, is there a way to set up active trading in 2 or 3 intervals? For example,

    Trading Active: 1 AM - 4:59 AM
    Trading Inactive: 5 AM - 6:59 AM
    Trading Active: 7 AM - 2 PM

    How can I do that?

    #2
    Hi hasana1, thanks for posting. We have a full example of this demonstrated here:
    Hello, I am building a strategy to use with the MACD indicator and am trying to have it turn on at specific times to place an order. For example, turn on the strategy from 1:30-2:00am and then reactivate at 3:00-3:30am etc. for multiple times throughout the day. I have built 5 separate strategies for the times I want, however


    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    56 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    37 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    17 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    19 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    49 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X