We have developed an indicator that computes the breakeven price from trades based on a flat-to-flat position. In short, it uses the executions (and commissions) since the position opened to compute the price where the trader can close the position with zero gain/loss.
More info:
https://www.volaty.com/products/indicators/breakeven-price
However, if the trader opens a position on the previous day and carries it over to the next day, then the computation is not accurate because we can't access the previous day executions. I know there is a TradeCollection object that we can use in strategies. Is there a similar thing we can use from the Account object? Is there a way to access trades from the database?
There seems to be a feature request SFT-586 for this back from 2018. Any updates on this? More info on the feature request here.
Comment