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 Balage0922, Today, 07:38 AM
      0 responses
      2 views
      0 likes
      Last Post Balage0922  
      Started by JoMoon2024, Today, 06:56 AM
      0 responses
      6 views
      0 likes
      Last Post JoMoon2024  
      Started by Haiasi, 04-25-2024, 06:53 PM
      2 responses
      19 views
      0 likes
      Last Post Massinisa  
      Started by Creamers, Today, 05:32 AM
      0 responses
      6 views
      0 likes
      Last Post Creamers  
      Started by Segwin, 05-07-2018, 02:15 PM
      12 responses
      1,786 views
      0 likes
      Last Post Leafcutter  
      Working...
      X