Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ticksize from Exchange/Broker

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

    Ticksize from Exchange/Broker

    Hi,

    Is there a way to determine from a Strategy, in realtime what the Ticksize for an instrument is, as opposed to using the TickSize as configured in NT?

    I am using NT8 with TWS, and already found 2 securities (BKS and LNTH) where the Ticksize in NT is setup as 0.01, but the contract setup per Interactive Brokers is 0.05.

    Please advise.

    Thanks,
    Alex

    #2
    Hello Alex,

    NinjaTrader is not able to get the ticksize information from TWS.

    This must be setup correctly in the instrument settings for the instrument to load correctly.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Ok - thank you.

      Comment


        #4
        Hi Chelsea,

        A new pilot program was launched with the exchanges last year to change ticksize to 0.05:
        Download the newly-published specifications for the data collection requirements of the Tick Pilot NMS Plan.


        There are currently 2273 equities participating in this program, and everyday at least 1 or 2 show up in my scans.

        Is there anyway a graceful solution for this can be implemented in NT? This is becoming a major pain in the neck because manually looking up each equity is time consuming, and I work with between 5-10 equities a day.

        Please let me know if this can be added to list of features to NT, or better yet, if you can recommend a way to calculate ticksize in realtime (have not figured out how to do this part).

        Thanks!
        Last edited by shadowfax; 07-11-2017, 09:46 AM.

        Comment


          #5
          Workaround:

          Downloaded the list of securities from the FNRA site, open file and check if equity is in the pilot. If yes - set ticksize to 0.05, otherwise keep at default.

          Comment


            #6
            Hello shadowfax,

            I have submitted a feature request on your behalf to the NinjaTrader Development to consider adding functionality that would query the TickSize of an instrument in real time from Interactive Brokers and included a link to your post.

            Once I have a tracking ID for the request I will post in this thread for future reference.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hello shadowfax,

              Your request to import TickSize from Interactive Brokers in real time is being tracked with ID #SFT-2518.

              Please note it is up to the NinjaTrader Development to decide if and when a request will be implemented.

              Thank you for your suggestion. Please let me know of any other suggestions you have for the NinjaTrader Platform.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                I also vote for this feature.

                Comment


                  #9
                  I came up with the following workaround for this issue and it appears to be working. I'm using the FINRA tick size pilot list, though I don't know how often they modify it, or whether they plan to change this list at all for the remainder of the pilot program.

                  Code:
                  						
                  // Add this to your declarations to use StreamReader
                  using System.IO;
                  
                  // ***********************************************************
                  
                  // Under public class ****** : Strategy
                  private string path;
                  private StreamReader sr;
                  
                  // ***********************************************************
                  
                  // Under State.SetDefaults
                  path	= "C:\\Tick_Pilot_Test_Group_Assignments.txt";
                  
                  // ***********************************************************
                  
                  // In OnBarUpdate - preferably only called when entry point price conditions are met:
                  sr = new System.IO.StreamReader(path);
                  string line;
                  				
                  // Read lines and check if current instrument is in a test group of the pilot program 
                  // While loop will go through the whole file.
                  while ((line = sr.ReadLine()) != null) 
                  {
                  	if (line.StartsWith(Position.Instrument.MasterInstrument.Name + "|"))
                  	{
                  		if (line.EndsWith("|G1") || line.EndsWith("|G2") || line.EndsWith("|G3"))
                  		{
                  			// Avoid IB rejection
                  			LimitPrice = Math.Round(LimitPrice*20)/20;
                  			StopPrice = Math.Round(StopPrice*20)/20;
                  		}
                  		break;
                  	}
                  }

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by alifarahani, 04-19-2024, 09:40 AM
                  8 responses
                  53 views
                  0 likes
                  Last Post alifarahani  
                  Started by mmckinnm, Today, 01:34 PM
                  2 responses
                  5 views
                  0 likes
                  Last Post mmckinnm  
                  Started by Conceptzx, 10-11-2022, 06:38 AM
                  3 responses
                  60 views
                  0 likes
                  Last Post NinjaTrader_SeanH  
                  Started by f.saeidi, Today, 01:32 PM
                  1 response
                  2 views
                  0 likes
                  Last Post NinjaTrader_Erick  
                  Started by traderqz, Today, 12:06 AM
                  9 responses
                  16 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Working...
                  X