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 ageeholdings, Today, 07:43 AM
    0 responses
    8 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    7 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X