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 CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    32 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    127 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    182 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    94 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    138 views
    0 likes
    Last Post cmoran13  
    Working...
    X