Here is my code (that doesn't work because entry.price is an object, not the actual price alone):
if (Performance.AllTrades.Count > 0) { Trade lastTrade2 = Performance.AllTrades[Performance.AllTrades.Count - 1 ]; Print(lastTrade2.Entry.Price); if (lastTrade2.Entry.Price > GetCurrentAsk()) allowentry = true; else allowentry = false; } else allowentry = true;
2/14/2008 12:40:00 PM 116.484375
I want only the price, not the date or entire object variable. It looks ilke lastTrade2.Entry.Price is an object, not a double [notice the date too] of the price alone. Whats the best way to access this?
[another variable?]
Comment