I have defined:
private Order tempOrd = null
private IOrder myOrd = null
then in the script (when the tempOrd is not "null"), I would like to copy the content of tempOrd to myOrd:
myOrd = (IOrder)tempOrd
I hope it will make the conversion from Order object to IOrder object, but I got an error message:
Unable to cast object of type 'NinjaTrader.Cbi.Order' to type 'NinjaTrader.Cbi.IOrder'.
What does it mean exactly, and how can I resolve this problem?
Thank you for advance
Akos
Comment