Hi ags,

There is no detailed reason why the first order was rejected, so we can only guess what happened.

But if the second attempt was successful, as you said, probably the problem is not the stop loss.

All brokerXxx() methods print their arguments as they were received from Zorro, i.e. the plugin was called with stop=1678.76 and in the manual it is described as this:

Code:
stop  Optional input, 'safety net' stop loss distance to the opening price, or 0 for no stop.



So in case of buy order (amount > 0), it should be subtracted from the order's opening price.