Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Eliminating overnight trading

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

    Eliminating overnight trading

    I have been searching around and have not been able to figure out how to eliminate after hours trading.

    I know that I can set the times for entry and exit, but the problem is, my calculations are still being done on overnight data, which doesn't seem to work with my model.

    I am looking at futures and only have 4 variables. Any assistance would be appreciated.

    #2
    Originally posted by cfp462 View Post
    I have been searching around and have not been able to figure out how to eliminate after hours trading.

    I know that I can set the times for entry and exit, but the problem is, my calculations are still being done on overnight data, which doesn't seem to work with my model.

    I am looking at futures and only have 4 variables. Any assistance would be appreciated.
    You are talking about a strategy that you wrote or can modify?

    Put the time check on your strategies order entries, and not the rest of it?

    Comment


      #3
      I did that but it still wont help, because when the market opens the order entries will be calculated off of the overnight data.

      Comment


        #4
        Just filter for the times you don't want to calculate on, and return before your values calculate:

        if (noCalcTime == true) return;

        //value calculations down here

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        68 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        62 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X