Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Offset TickSize

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

    Offset TickSize

    Hi,

    If I'd like to write a code manually (not using the Strategy Builder), with the following context:

    If my conditions are met, then place a limit buy position that is 24 ticksize greater than current high

    Here's how I wrote it (it should be very straightforward )

    EnterLongLimit(Convert.ToInt32(DefaultQuantity), (High[0] + (24 * TickSize)) , "");

    However, it executes, but not on the same exact price I specified. Can you please advise what's wrong?


    Thanks..










    #2
    Hello Abdullah_KSA,

    Thanks for your post.

    A buy limit order is to be placed below the current price. If it is placed above the current price then it would fill immediately as a limit order will fill at the limit price or better and in this case of entering a long position when you place the order above the current price, the current price is a better price.

    The correct order types to use to enter long above the current price are EnterLongStopLimit or EnterLongStopMarket.

    References:


    Comment


      #3
      Thank you, Paul
      EnterLongStopMarket was the solution to my problem
      It worked

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X