Tuesday, January 06, 2009     | Register
TradersStudio Forums
Subject: Last Trade P&L

You are not authorized to post a reply.   
Author Messages
bryanbonner
Posts:18

06-15-2007 10:19 AM Alert 
How do I get the p&l from the previous trade? I'm trying to use "GetInfoAboutTrades" but I get an error every time.
quest
Posts:11

07-11-2007 5:14 PM Alert 
Posted By bryanbonner on 06-15-2007 10:19 AM
How do I get the p&l from the previous trade? I'm trying to use "GetInfoAboutTrades" but I get an error every time.
 
You're accessing the value wrongly. I hit this problem myself but because i lost all of my code after upgrading to 2.5 can't immediately point you to the answer (can't remember what i did). I'm in the process of recovering but by the time I've done that you'll either have an answer or you'll have worked it out for yourself. 
 
If I remeber correctly the issue is that your accessing an object reference rather than a variable array...
 
 
Regards,
Dave


You are not authorized to post a reply.



ActiveForums 3.6
TradersStudio® Copyright 2004-2009 All Rights Reserved   |  Privacy Statement  |  Terms Of Use