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 Haiasi, 04-25-2024, 06:53 PM
    2 responses
    16 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    4 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,785 views
    0 likes
    Last Post Leafcutter  
    Started by poplagelu, Today, 05:00 AM
    0 responses
    3 views
    0 likes
    Last Post poplagelu  
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,407 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Working...
    X