SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Sun Sep 26, 2021 12:35 pm

All times are UTC + 3 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: profit of last trade
PostPosted: Mon Aug 20, 2007 1:41 am 
Offline

Joined: Wed Aug 15, 2007 1:40 am
Posts: 11
I need to know if the last trade was a winner or loser. I've hacked together a way that works by processing orders on 'OnOrderFilled' and scanning back in the Orders to find the correct entry and then comparing entry and exit prices, but it's ugly. I've probably made this too complicated.

Is there a simple way to tell if the last trade was a winner or loser?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group