Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to identify when the future/stock is at auction in a strategy?

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

    How to identify when the future/stock is at auction in a strategy?

    I have a scalper strategy, which runs tick-a-tick, however, when the future/stock goes into auction, there is lack of control in the issuance of orders.

    How do I identify when the future/stockis at auction?

    #2
    What does "goes into auction" mean?

    Comment


      #3
      Hello janiodesouza,

      I'm not familiar with this term.

      Investopedia appears to be describing this as an exchange such as the NYSE.


      Can you clarify what defines when a stock goes into auction? Are you referring to an IPO?

      When you say issuance of orders, are you meaning that you are calling order methods and the orders are being rejected?
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        The link https://tc.com.br/tc-school/mercado-...ilao-b3-bolsa/ demonstrates as well as the video https://youtu.be/oITo8FEDw24 does.

        The opening auction is a moment prior to the formal opening of the stock exchange and is intended to set the consensus price for a particular financial asset.
        It takes place before the official opening of futures and stock trading, as well as before the closing of each trading session.


        My robot only uses limit orders, and with the market in auction the NT8 gets lost, and is placing millions of orders. And, millions of orders are executed and hit the take profit instantly.

        Comment


          #5
          Hi am guessing you will get another reply from the NT team.

          Until then something to consider.

          1) A pragmatic approach might be to simply use NinjaScript time functions to prevent your strategy from executing any trades for the 1-5 mins before the market opens. More information and a sample from the NT team can be found here.
          https://ninjatrader.com/support/help...to_limit_t.htm


          2) Another simple approach might be to customize your trading hours template to prevent your strategy from executing at specific times.
          https://ninjatrader.com/support/help...urs_window.htm

          Some folks have used multiple trading hours templates on several similar data series in their strategies to create windows of time during a 24 hour period where strategies trade and where they do not. Like using the similar US instruments MES for premarket and ES for regular trading hours.

          Might check out these overloads and the documentation at this page. https://ninjatrader.com/support/help...ng_changes.htm
          AddDataSeries(string instrumentName, BarsPeriod ba rsPeriod, string tradingHoursName)
          AddDataSeries(string instrumentName, BarsPeriod ba rsPeriod, string tradingHoursName, bool? isResetOn NewTradingDay)
          AddDataSeries(string instrumentName, BarsPeriod ba rsPeriod, int barsToLoad, string tradingHoursName, bool? isResetOnNewTradingDay)

          Complex examples for combining multiple trading hours templates exist in posts here in the forum or at Futures.io but my search did not find them.

          Here are two free working indicator examples using multiple trading hours template to control timing from FatTails (of LizaradIndicators) posted over at Futures.io
          SessionVWAP Daily(amaCurrentDayVWAP) https://futures.io/local_links.php?linkid=1897
          Session Pivots Daily (amaPivotsDaily) https://futures.io/local_links.php?linkid=1919

          Note: I would expect most people would want to at least start with the simpler example above, example #1 https://ninjatrader.com/support/help...to_limit_t.htm

          Good Luck!
          HedgePlay
          Last edited by hedgeplay; 03-16-2021, 08:28 PM.

          Comment


            #6
            Hello janiodesouza,

            To clarify, you would like an indication of 1 second before the market opens?


            hedgeplay, these are great suggestions. If the goal is to trigger an action 1 second before the open of a trading session, a custom hours template and time filter is also what I suggest.

            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Thank you very much hedgeplay, yes, I already use schedule control, I used the example code available at https://ninjatraderecosystem.com/use...gy-nt8-update/ .

              Chelsea B., answering your question, no.
              I actually need to identify when the market is in auction, and, this only the above schedule control is not enough, as the auction can happen at any time, per Circuit Break. And, I want to ensure the safety of the strategy.

              How to proceed?

              Comment


                #8
                Hello janiodesouza,

                If this is a market data update and not something that can be detected with logic, unfortunately, this may not be a value that is provided by the data provider.

                Below are links to the help guide on the market data updates that are available.


                Chelsea B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by RookieTrader, Today, 09:37 AM
                3 responses
                15 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by kulwinder73, Today, 10:31 AM
                0 responses
                5 views
                0 likes
                Last Post kulwinder73  
                Started by terofs, Yesterday, 04:18 PM
                1 response
                23 views
                0 likes
                Last Post terofs
                by terofs
                 
                Started by CommonWhale, Today, 09:55 AM
                1 response
                4 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by Gerik, Today, 09:40 AM
                2 responses
                7 views
                0 likes
                Last Post Gerik
                by Gerik
                 
                Working...
                X