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 fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    160 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    9 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X