If i have an excel spreadsheet of all trades performed based on a set of rules, is there a function I can use to allow me to only be 'in' 20 trades at a time?
I have the entry and exit date of each trade.
Effectively it needs to be something along the lines of 'If I have 20 open trades then the next trade must be ignored' or 'only enter trade if 19 trades or less are open'
Insert new column K
=COUNTIF($J$7:J7,">"&I7)
and drag down
This will count how many exit dates are above the current entry date (ie how many stocks not exited) = open positions.
You can then edit entries/exits accordingly
Outstanding.
I'm usually not too bad on excel but I'm stumped on this seemingly basic one. Trying to get a 3rd variable for a column chart (My PnL) showing whether I traded MHI or HSI that day, but it's giving me some kinky outcomes thus far. Anyone got some ideas? Or a template for a chart of PnL, date and product?
I'm usually not too bad on excel but I'm stumped on this seemingly basic one. Trying to get a 3rd variable for a column chart (My PnL) showing whether I traded MHI or HSI that day, but it's giving me some kinky outcomes thus far. Anyone got some ideas? Or a template for a chart of PnL, date and product?
Not exactly sure what you're asking, are you trading HSI and MHI?
I assume you copy paste data from IB?
Yep, MHI mostly recently for a couple reasons.
And yep copy paste data from IB.
SKC, I appreciate that, have got that one on a diff spreadsheet but I'd really like to keep the one PnL chart for overall performance. For example, a label near the date saying whether it was MHI or HSI traded that day. If that makes sense?
So a cumulative PnL of my entire account labelling each day traded as either MHI or HSI and still showing returns on the Y axis and date on the x axis.
Hi,
I just want to calculate the difference (sell - buy) on a list of trades.
The list is of paired trades like so:
A B C D
1 Buy BHP $10000
2 Sell BHP $11000 D2 = C2-C1=$1000 profit**
3 Buy NAB $10000
4 Sell NAB $12000 D4 = .....?
How do I replicate this** function in D4 and every second line thereafter? I did it last year and can't recall the process.
Thanks.
EDIT: alternatively, if I drag the function down to include all cells, then I just need to delete or make every second cell=zero in that column. Any ideas on this please?
Another simple method is the use of a conditional formula, which you can then fill down.Hi,
I just want to calculate the difference (sell - buy) on a list of trades.
The list is of paired trades like so:
A B C D
1 Buy BHP $10000
2 Sell BHP $11000 D2 = C2-C1=$1000 profit**
3 Buy NAB $10000
4 Sell NAB $12000 D4 = .....?
How do I replicate this** function in D4 and every second line thereafter? I did it last year and can't recall the process.
Thanks.
EDIT: alternatively, if I drag the function down to include all cells, then I just need to delete or make every second cell=zero in that column. Any ideas on this please?
Another simple method is the use of a conditional formula, which you can then fill down.
instead of
=C2-C1
use
=if(B2="Buy","",C2-C1)
or
=if(B2="Sell",C2-C1,"")
This formula will only put the Profit into cell D2 if it's not a Buy (or definitely a Sell); otherwise, it will result in an empty cell. This formula can be filled down all the way from cell D2.
Thanks again. Good to have alternative options.
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.