Hi

I use Zorro code to help with discretionary trading on a MT5 platform. It enters a trade under certain conditions and places a stop after which I manage the trade manually in MT5.
If I close the trade myself in MT5 Zorro states 'can't close at attempt x'. The MT5 experts log states 'Trade x not found..'.

It is a NON NFA compliant account, TICKS is set and Hedge=1. Using Zorro S.

It seems I must use cancelTrade() ?. The manual states ‘useful for removing an externally closed position that was not transmitted to Zorro..’

Must cancelTrade() be used in an enumeration loop within a TMF?
What condition/code is used to establish whether the trade has been closed externally?

Zorro does also not recognize if I move the stop myself in MT5. How does one code this?

Thanks..



Last edited by jacqu; 10/04/22 07:47.