Hi all,
I have the following:
I have the following:
Code:
ID TRXDATE ACCT TRXTYPE PRICE QTY
1 12/1/2001 VCN b 2.5 100
2 12/2/2001 VCN b 3 100
3 12/3/2001 VCN b 3.5 75
4 12/3/2001 VCN b 3.2 100
5 12/6/2001 VCN s 6.5 100
6 12/7/2001 VCN b 6.9 100
7 12/15/2001 VCN s 7 50
8 12/16/2001 VCN s 8 50
9 12/16/2001 VCN s 9 150
10 7/8/2002 VCN s 6 125
Base on 1% Commission of Gain,(0, if Loss)I would like to
RETURN 17.675. This result is base on below:
Qty COst Sale Gain/Loss % Commission
100 250 650 400 0.01 4
50 150 350 200 0.01 2
50 150 400 250 0.01 2.5
75 262.5 675 412.5 0.01 4.125
75 240 675 435 0.01 4.35
25 80 150 70 0.01 0.7
100 690 600 -90 0.01 0