Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Small doubt about TickSize

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

    Small doubt about TickSize

    Hi

    Please take a look at this example using Unmanaged Approach.

    Code:
    shortEntry = SubmitOrder(0, OrderAction.SellShort, OrderType.Limit, 1, Open[0]+10*TickSize, 0, "entry", "Short limit entry");

    Here you see that Short Entry 10 ticks above the opening price of the session. You can see that I did not mention any Tick Size. For Eg. Crude 0.01, ES 0.25... and so on..

    Is it necessary to mention the tick size as numerical value ? Or Does Ninjatrader understand that automatically based on the instrument... ?

    Please clarify.

    #2
    Hello karthik007,

    Thanks for your post.

    TickSize does automatically provide the smallest price movement for the instrument in use.

    Here is the definition in the helpguide: http://www.ninjatrader.com/support/h...l?ticksize.htm

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

    Comment


      #3
      Hello Paul. Thanks for your reply.

      I'm trying to close working orders and filled orders after the end of a session using

      ExitOnClose = true;
      ExitOnCloseSeconds = 5;

      in unmanaged approach.

      But it is not working.. Please tell why. I inserted this code in Initialize() at the beginning of the strategy. But the orders are not cancelling/closing 5 seconds before the close of the session in progress.

      If you need to see the code, I can PM it to you. Please let me know.
      Last edited by karthik007; 04-20-2015, 06:27 AM.

      Comment


        #4
        Hello karthik007,

        Thanks for your question.

        When you apply the strategy have you verified that the Exit on Close setting in the strategy panel (user interface) is also set to True?

        Comment


          #5
          Yes Paul, it is enabled but it is not working. I've sent the code to your inbox. Please take a look.

          Comment


            #6
            Hello karthik007,

            Regrettably the link does not work.

            Please forward your code to PlatformSupport[at]NinjaTrader[dot]com with atten:Paul and the link to this thread in the title.

            What instrument are you testing with?

            What session template are you using?

            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