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 XXtrader, Yesterday, 11:30 PM
    2 responses
    11 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    7 views
    0 likes
    Last Post elirion
    by elirion
     
    Working...
    X