Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecution error

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

    OnExecution error

    Hi,

    I get the following error when iterating through a list of orders (shown below).

    I have never seen this before and have no idea what it means. I have a list I am iterating through in OnExecution to see if I need to move any profit orders based on the latest execution. I have tried the iteration both after I added the order I just put in
    and before I to no avail.

    private List<IOrder> profitList

    **NT** Error on calling 'OnExecution' method for strategy ... Unable to cast object of type 'NinjaTrader.Strategy.OrderProxy' to type 'NinjaTrader.Cbi.Order'.

    I am open to suggestions.

    Best Regards,
    Scott

    #2
    As another post put it so well - oops pilot error. I had a typo that mysteriously compiled and I didn't notice the letter missing.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X