Equation solving problem - Post trade allocation

This is a discussion on Equation solving problem - Post trade allocation within the Techies Corner forums, part of the Trading Tools category; HI everybody. for my job i need to set up and solve an equation. I need to allocate trades to ...

Reply
 
LinkBack Thread Tools Search this Thread
Old Jun 11, 2012, 6:31am   #1
New Member
 
matgoo's Avatar
 
Member Since Jun 2012
Default Equation solving problem - Post trade allocation

HI everybody.

for my job i need to set up and solve an equation. I need to allocate trades to multiple account with the same average buy price. For example.

I bought 100 shares: 2 at 2.50 37 at 2.54 41 at 2.56 and 30 at 2.60. Then i need to allocate, out of the 100 shares, 40 shares to account1, 33 shares to account2, 7 shares to account3 and 20 shares to account4. - all of the account must have the same average buy price (2 to 3 digits must me equal, after it can vary.) - you can not divide a share, so only plain numbers. - all the shares must be allocated. - the algorithm should work with 10+ accounts and 50+ different shares prices.

it's 2 weeks I work on this, have approximate solutions, but the the correct equation and integration in matlab, I don't! see some help!

Thank you!!

Matgoo
matgoo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solving Profile problems on Vista paul_ruggeasey Trading Software 2 Jun 1, 2012 10:24pm
How many contract to trade? Strategy allocation. horace Trading Systems 21 Jul 13, 2011 3:11am
trade problem qaisar Site News & Feedback 0 Apr 3, 2007 4:06pm
Problem Solving Flow Chart Newtron Bomb The Foyer 0 Nov 21, 2003 9:20am