Having trouble identifying and recording the exit price for a trade that closes out part of a position.
Attempting to print to a file various variables and prices when a partial trade is made. Using Marketposition works when the entire position is closed as it changes from 1 to 0 and I can record the tick when that happens. For a partial position, Marketposition remains at 1. I thought I could use CurrentShares and identify the tick when the number is reduced. What I found was that CurrentShares apparently only changes at the close of the bar, not at each tick. What other identifying characteristic can I use to locate the exact tick when a partial position is closed out?
Save data for partial trade with IOG on [SOLVED]
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Save data for partial trade with IOG on [SOLVED]
I think the PosTrade* keywords might be of help to you.