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

Ignored PlaceOrder but position exists

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

    Ignored PlaceOrder but position exists

    Hello,

    I have attached 2 image and one output file. i have that message (read output.txt):
    <pre>5/31/2013 2:15:50 PM Ignored PlaceOrder() method: Action=BuyToCover OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='x_8a78b3d2bd3442b4b67ee6d49289680c' FromEntrySignal='e_5c625b49a9e843398cfb7f86bd7e6e4 5' Reason='This was an exit order but no position exists to exit'
    </pre>

    But as you can see on picture "positions.png" position exists. Order executed, you can find them on picture "executions.png"

    Execution name which NT tried to exit is e_5c625b49a9e843398cfb7f86bd7e6e45 is also exists.

    What is wrong here?

    d4t
    Attached Files
    Last edited by mikha.dev; 05-31-2013, 12:40 PM.

    #2
    Hello,

    Please send your most current log and trace files to support [at] ninjatrader [dot] com, so I may investigate this matter further.

    You will find the log file on your PC in the (My) Documents > NinjaTrader 7 > Log folder.

    The log file will be named "log.YYYYMMDD.txt"

    You will find the trace file on your PC in the (My) Documents > NinjaTrader 7 > Trace folder.

    The trace file will be named "trace.YYYYMMDD.txt"

    Please reference this thread in the body as well: http://www.ninjatrader.com/support/f...ad.php?t=58148
    LanceNinjaTrader Customer Service

    Comment


      #3
      Hello,

      it is fixed, thank you for you help. just for history posting solution here:

      The reason for this difference is due to the account position being different to the strategies position.
      For more details explaining the differences please see: http://www.ninjatrader.com/support/h..._account_p.htm
      Additionally I have put together a video explaining the sync options available: http://www.youtube.com/watch?v=US9cK...A140D7&index=5

      So i just added SyncAccountPosition = true; in method Initialize()

      Still don`t know how to use strategy without that option, for example when i need to open position in strategy environment only and don`t put orders to live account. But for now it is working and it is perfect.

      Thank you Lance
      Last edited by mikha.dev; 05-31-2013, 10:57 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by royhagerman, Today, 04:30 AM
      0 responses
      1 view
      0 likes
      Last Post royhagerman  
      Started by haas88, 03-21-2024, 02:22 AM
      18 responses
      208 views
      0 likes
      Last Post haas88
      by haas88
       
      Started by Board game geek, Today, 02:20 AM
      0 responses
      6 views
      0 likes
      Last Post Board game geek  
      Started by knighty6508, Today, 01:20 AM
      2 responses
      16 views
      0 likes
      Last Post knighty6508  
      Started by franatas, Today, 01:53 AM
      0 responses
      5 views
      0 likes
      Last Post franatas  
      Working...
      X