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 NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X