Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Managed order approach in onMarketData()

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

    Managed order approach in onMarketData()

    Per info from http://www.ninjatrader.com/support/h...ubmitorder.htm,

    Order is kept alive as long as it is re-submitted on each call of OnBarUpdate(). Is this applicable to OnMarketDepth() or OnMarketData() as well? For instance,

    protected override void OnMarketdata()
    {
    ...
    EnterLongLimit(GetCurrentBid());
    }

    #2
    If this is applicable, then next question is:
    OnBarUpdate() is updated per length of each bar completes, say 1 min or 5 mins. But OnMarketData() could be updated much more frequently, could this be a problem?

    Comment


      #3
      appleseed, correct in the managed mode the order would expire if not filled within the bar it was submitted on, this is in contrast to unamanged where the order will generally be live until cancelled (or taken care by the end of session handling). The expiration will hold true for other methods as well, since you are submitting to a specific series.
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by jclose, Today, 09:37 PM
      0 responses
      5 views
      0 likes
      Last Post jclose
      by jclose
       
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      10 responses
      1,414 views
      0 likes
      Last Post Traderontheroad  
      Started by firefoxforum12, Today, 08:53 PM
      0 responses
      11 views
      0 likes
      Last Post firefoxforum12  
      Started by stafe, Today, 08:34 PM
      0 responses
      11 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by sastrades, 01-31-2024, 10:19 PM
      11 responses
      169 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X