How can I use this to check the profits of a position that is about to be closed by tp, in case the broker widens his spread?
- Detect stop trigger in OnTradeTransaction backtest
- Ubzen OOP Project with MAE
- Enter new order only when first is executed (filled)
mr_stoploss:
How can I use this to check the profits of a position that is about to be closed by tp, in case the broker widens his spread?
If the position is "about to be closed", it's not closed, so there is no transaction. You probably can't use this event handler for what you are trying to do.
How can I use this to check the profits of a position that is about to be closed by tp, in case the broker widens his spread?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register