Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entering at Market Open

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

    Entering at Market Open

    Is it possible, in backtesting, to enter at Market Open Price without having the tick data?

    The part of the custom code that I am using and believe is relevant is this:

    Code:
    //enter the market when the date changes
    if (ToDay(Time[0]) != ToDay(Time[1]))
    {
    EnterLong();
    }
    I saw in aother thread that I could use the Add(PeriodType.Tick, 1) to enter at opening price (and yes! it worked!). Unfortunately, my data feeder only provides 3 months worth of tick data, so I was wondering if there was a way to backtest entering at market open without the tick data from the data feed provider. (when I use 1 minute data, the backtester will enter at the start of the second bar, not at the start of the first one)

    I think it's probably not possible, but I can't rest without being sure.

    Thanks

    #2
    Hello Laikennus,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    Unfortunately, this would not be possible without the tick data as the secondary series to enter or exit on.

    Comment


      #3
      Alright, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      32 views
      0 likes
      Last Post Pattontje  
      Started by abdo22, Yesterday, 03:15 PM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by f.saeidi, Yesterday, 02:09 PM
      3 responses
      20 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Jltarrau, Today, 05:57 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by kujista, Today, 06:23 AM
      0 responses
      2 views
      0 likes
      Last Post kujista
      by kujista
       
      Working...
      X