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
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by helpwanted, Today, 03:06 AM
    1 response
    16 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X