Alright, so you can only trail to break-even with a SET STOP type stoploss. Than I will try to find out what’s causing the strange overnight behavior with the stops as described in my first post.
Also do not forget that if you send an order to the market that is too close to the price then the order will be rejected. You need to consider the minimum allowed stop distance for whatever instrument you are trading and include something in your code to ensure you never try to place an order that is under it.
I experienced that if it tries to put in a stoploss and the current price is beyond the stoploss level, the position closes at market (with IG CFD). Stops too close indeed got rejected. Will this shut the system down after too many rejections?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok