I am working on a trade tracking spreadsheet. The problem I need guidance with is the formula in the Capital Gain/Loss column.
Seven columns are used for this scenario:
1. A for the position short/long
2. B for the entry price
3. C for the exit price
4. D for the points =B1-C1
5. E for the capital earned =D*F*G (for NQ's)
6. F for Contracts
7. G for contract value $20/contract NQ's
This works for shorting(=A1-B1) in calculating the points earned.
But I need the formula for "C" column to read =B1-A1 for Longs.
Is there anyone who can provide me with a formula for column "D" that says:
"If column A is short than(B1-C1) If column A is Long than (C1-B1)"
Thanks in advance.
Jeffrey
Seven columns are used for this scenario:
1. A for the position short/long
2. B for the entry price
3. C for the exit price
4. D for the points =B1-C1
5. E for the capital earned =D*F*G (for NQ's)
6. F for Contracts
7. G for contract value $20/contract NQ's
This works for shorting(=A1-B1) in calculating the points earned.
But I need the formula for "C" column to read =B1-A1 for Longs.
Is there anyone who can provide me with a formula for column "D" that says:
"If column A is short than(B1-C1) If column A is Long than (C1-B1)"
Thanks in advance.
Jeffrey