Support Board
Date/Time: Sun, 24 Nov 2024 13:57:01 +0000
Post From: Maximum Open Position Profit/Loss going backwards
[2013-10-25 02:08:29] |
User76625 - Posts: 49 |
I'm sure there's a lot of stuff going on in the background that I don't understand, but why would the value ever go down? If I enter 1 contact at 100 and it moves to 105, the MaximumOpenPositionProfit and OpenProfitLoss should be 5. If price then moves back down to 102, then I would expect OpenProfitLoss would show 2 and MaximumOpenPositionProfit still 5. Why would MaximumOpenPositionProfit give anything other than 5 if that is the maximum open position profit? I could see it getting more confusing if I were to constantly scale in and out, but with just one entry and then one exit to close that position, it seems like it should be giving an accurate value of the max open profit at any point during the life of the trade. I'm trying to flatten a position if InternalPositionData.OpenProfitLoss < (InternalPositionData.MaximumOpenPositionProfit * X%). Basically, if the price retraces more than (1-X%), close out. I guess I can try to re-write it to look at high/low price vs. current price instead of open profit vs. max profit. I just figured this was an easy way to look at the highest point, but only while a trade is active. But if MaximumOpenPositionProfit doesn't always give you the max open position profit, then that won't work. |