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, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X