if (Performance.RealtimeTrades.Count > 0)
{
Trade lastTrade = Performance.RealtimeTrades[Performance.RealtimeTrades.Count - 1];
double exitPrice = lastTrade.Exit;
}
For some reason, its not working and I'm getting the following compile error:
(while highlighting the code: "lastTrade" in the line: "double exitPrice = lastTrade.Exit")
" Cannot implicitly convert type 'NinjaTrader.Cbi.IExecution' to 'double' "
I'm not sure what this means. Can someone help?
Thanks,
taddypole...
Comment