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 burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X