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 NullPointStrategies, Today, 05:17 AM
      0 responses
      41 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      124 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      64 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X