Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order isn't placed at right time

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

    Order isn't placed at right time

    I'm trying to enter long at a specific price away from current price and my orders aren't placed. My strategy is set to update per tick and it doesn't always place the order. Why?
    I'm using this to enter:

    EnterLongStopMarket(HighestHigh[0]+5*TickSize);

    #2
    Hello ttrader23,

    You would need to debug the conditions to enter if it is not placing trades when you think it should be. You can add a Print into your entry condition to make sure the order is being submited.

    As a side note calling EnterLongStopMarket like you are now will expire after 1 tick if you do not continuously call EnterLongStopMarket until it fills. All orders will expire after 1 bar, or 1 tick in the case of using OnEachTick. To keep the order active you either need to keep calling that method or use IsLiveUntilCancelled true.

    EnterLongStopMarket(int barsInProgressIndex, bool isLiveUntilCancelled, int quantity, double stopPrice, string signalName)

    Comment


      #3
      Also, note that if, every tick, you move your order to the highest high of the past X bars (including the current incomplete bar) plus five ticks, that order would never fill on any bar unless there were an intrabar gap of five ticks plus the spread between two consecutive trades. Depending on the instrument and trading hours, that might happen, but on something like ES during RTH that is improbable.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      86 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      151 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      79 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      53 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      61 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X