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

Wrong sequence of standard executions

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

    Wrong sequence of standard executions

    Hello

    I don`t understand why Ninja comeback to OnBarUpdate (where I put orders like EnterLong() ) after sequence OnBarUpdate ->OnOrderUpdate. And don`t come to OnExecutionUpdate but have to
    I checked it by debugging with MS Studio with Sim101 like realtime.

    I need to check that current Position is Position.MarketPosition == MarketPosition.Long. But without OnExecutionUpdate() I dont see have this info in OnBarUpdate part or my strategy.

    Thanks a lot

    #2
    Hello sergey_z,

    Thank you for the post.

    I don`t understand why Ninja comeback to OnBarUpdate (where I put orders like EnterLong() ) after sequence OnBarUpdate ->OnOrderUpdate. And don`t come to OnExecutionUpdate but have to
    I am not certain I understand what you are asking with how you worded the question. Are you saying that OnExecutionUpdate does not get called? Can you provide more detail on this question?

    I need to check that current Position is Position.MarketPosition == MarketPosition.Long. But without OnExecutionUpdate() I dont see have this info in OnBarUpdate part or my strategy.
    I am also unsure what you mean with this question, you can generally use the OnExecutionUpdate to complete logic or this can be done from OnBarUpdate, what specifically are you seeing in the platform? Can you provide more detail about the problem?

    I look forward to being of further assistance.

    JesseNinjaTrader Customer Service

    Comment


      #3
      Because if your order is never filled, ninja trader would effectively stop.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by frankthearm, Today, 09:08 AM
      3 responses
      7 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by yertle, Today, 08:38 AM
      5 responses
      15 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by adeelshahzad, Today, 03:54 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by bill2023, Yesterday, 08:51 AM
      6 responses
      27 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by NinjaTrader_ChelseaB, 01-08-2017, 06:59 PM
      80 responses
      19,667 views
      5 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X