Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Entry date shows as the next day of actual entry

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

    Entry date shows as the next day of actual entry

    Hi,
    I have a strategy coded in NinjaTrader as below:

    protectedoverridevoid OnBarUpdate()
    {
    if(Historical)
    {
    if(Low[1]>=value1 && High[1]<value2 && Low[0]<=value3)
    {
    EnterLong("MD_348_002");
    }
    }

    }

    NB:value1,value2 and value3 are my variables
    The strategy working fine. But the entry date shown in trade report is the next day of the entry date expected.

    Can anyone help me??? I need to fix it urgently...
    Last edited by TintuLal; 09-22-2009, 11:00 PM.

    #2
    TintuLal, welcome to the forums - are you testing this on daily bars?

    To see the entry take place on the next bar would be expected in backtesting, to workaround this you could add another finer bars series for simulating intrabar execution - http://www.ninjatrader-support2.com/...ead.php?t=6652
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi,
      Yes...I'm testing this on daily bars.
      Then, as you mentioned I have added one intrabar series (15 min bars). But now it is taking long time to load data...

      Anyway, I require daily data because I need to check some conditions on the previous day bar.Then if that satisfies along with some conditions in current day, I need to "Enter Long" in current day.

      Any other workarounds possible to enter long in current day using daily data only?

      Comment


        #4
        How many days are you backtesting with this setup now?

        Just check the 'one day back' conditions on the daily series, while doing the 'current day' checks on the added 15 min series, then submit the orders to the 15 min series for intraday execution.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Originally posted by TintuLal View Post
          Any other workarounds possible to enter long in current day using daily data only?
          There is a hack I posted here but it changes the price, not the date:


          NT is trying to protect us from doing unrealistic basktests by purchasing at a "past price", but the flexibility lost is a problem for those of us that know what we are doing, especially with daily/weekly/monthly/yearly bars. Other similar tools I've used don't have this limitation.

          Comment


            #6
            Is there any way to change the date?

            Comment


              #7
              Originally posted by TintuLal View Post
              Is there any way to change the date?
              I've never seen such a way, but it might be possible. I'd love to know if you find a way, since the entry/exit marks show oddly on the chart and the dates in the trade tab are misleading without a way to change the fill date.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by frankthearm, Today, 09:08 AM
              7 responses
              30 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Started by NRITV, Today, 01:15 PM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by maybeimnotrader, Yesterday, 05:46 PM
              5 responses
              25 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by quantismo, Yesterday, 05:13 PM
              2 responses
              18 views
              0 likes
              Last Post quantismo  
              Started by adeelshahzad, Today, 03:54 AM
              5 responses
              33 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X