Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error in realtime market data handling

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

    Error in realtime market data handling

    Greetings great wizards of NT,

    In the log, I get the message "Error in realtime market data handling: System.ArgumentException: Order quantity has to be greater than 0 Parameter name: quantity at NinjaTrader.Cbi.Account.CreateOrder(Instrument instrument, . . .".

    Executions, in the Control Center show correct :
    Buy entry, quantity 2; position 2 L
    a second Buy entry, quantity 2;position 4 L
    Sell exit, quantity 2; position 2 L

    Positions, in the Control Center are INCORRECT :
    position 2 L
    position 2 L
    position 0

    Chart trader shows the same incorrect positions.

    I updated, so I'm now using Ver 8.0.20.1 64-bit, the problem started when I was using 8.0.19.0.
    I've reset the DB, Historical orders & executions, several times . . .
    This is done in an indicator, which was working fine until I guess I messed something up, any insights would be wonderful.

    Thanks,

    Bruce


    #2
    Hi BGWTEX, thanks for your note.

    Do you have a reduced test script that I can test out? Do you see this problem with the SampleMACrossover strategy?

    I look forward to hearing from you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    52 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    29 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    194 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    355 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    274 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X