Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterOnClose

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

    EnterOnClose

    Is there a reason there isn't a corresponding EnterOnClose/EnterOnCloseSeconds ? Why can't you replicate the logic used for ExitOnCloseSeconds? Should be similar to a MOC order.

    The problem I am running into is that I am forced to use minute data to run backtests that enter trades into the close and I am limited to that amount of history ~7yrs for IQFeed. If I was able to simulate some way to enter on close I could use the daily history +10 yrs.

    I was also thinking I could extend the Strategy object to include an EnterOnClose method. Is there anyway to do that?

    Just as an FYI, I don't trade these daily systems, but I use them to determine biases for my other systems.
    Last edited by GrumpyTrader; 04-03-2015, 07:51 AM.

    #2
    Hello,

    Thank you for the question.

    There will not be a EnterOnClose method similar to ExitOnClose as this is meant to make the position flat at the end of the session.

    Using Historical minute data, if you place an order and have CalculateOnBarClose set to true, this would enter the order on the close of that bar. There would be no need to "extend" the strategy as it already does this. If you are running into problems because you are submitting orders to the Daily data instead of your minute data you could look at this document: http://www.ninjatrader.com/support/h...lightsub=multi

    The historical data will drive the simulation engine using the ~7 years that you have, if you need more data you can use the historical data manager to import data from other sources or you could use it to create your own data points if needed.

    I look forward to being of further assistance.

    Comment


      #3
      Hi Jesse,
      Can you please at least push the request up the chain? The majority of your subscribers use either IQFeed or Kinetick which don't have minute bars beyond the 7 years.

      I run thousands of daily scenarios against thousands of instruments. Running them as multi-timeframe scenarios makes them 50x slower relative to the platform I'm converting from. Basically, it makes ninjatrader useless for me for this purpose.

      I understand the inaccuracy of taking the closing price of a daily bar as a valid entry, but that can't be the issue because you have ExitOnClose which is just as inaccurate.

      Lastly, I asked if there is a means to extend the strategy object so I can create the order type myself.

      Comment


        #4
        Originally posted by GrumpyTrader View Post
        Hi Jesse,
        Can you please at least push the request up the chain? The majority of your subscribers use either IQFeed or Kinetick which don't have minute bars beyond the 7 years.

        I run thousands of daily scenarios against thousands of instruments. Running them as multi-timeframe scenarios makes them 50x slower relative to the platform I'm converting from. Basically, it makes ninjatrader useless for me for this purpose.

        I understand the inaccuracy of taking the closing price of a daily bar as a valid entry, but that can't be the issue because you have ExitOnClose which is just as inaccurate.

        Lastly, I asked if there is a means to extend the strategy object so I can create the order type myself.
        You extend the Strategy class by creating a partial class. Look at the UserDefinedMethods.cs as a template.

        Comment


          #5
          Hello,

          The data provided by the different data providers is solely up to that provider, NinjaTrader has no say in what data will be retained for Kinetick or IQFeed. You would need to contact these providers to provide your comment to them.

          As I said before, you can also import external data going farther back, NinjaTrader has the capability to import text files with data points as seen here: http://www.ninjatrader.com/support/h.../importing.htm Mainly you would just need to locate a NinjaTrader compatible historical data source.

          There is no means to Extend the strategy base as this is internal, you can look into using the Unmanaged approach if the Managed orders are not to your liking, you can find more information here:


          Please let me know if I may be of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X