Indeed, I have two questions with the same objective. In a strategy, when a signal is generated, an order is executed with a stoploss and a profit target. Using `onorderupdate`, we can retrieve `averageFillPrice`, the stoploss (`sl`), and the profit target (`tp`). However, my concern is not to execute the order but simply to retrieve the order execution price, i.e., `close[0]`.
The dilemma arises when a signal is generated because `close[0]` differs from `averageFillPrice`. My main question is: how can I precisely retrieve this execution price (`averageFillPrice`) without placing the order?
I have considered a solution, but I'm unsure of its feasibility. If we execute this strategy on an account (sim1) with order execution, would it be possible to retrieve this `averageFillPrice` value from another strategy on a different account (sim2 or live)?
and If there are examples for this scenario, I would appreciate it if you could share them.
I want to express my gratitude for the time you dedicate to helping us.
Comment