I have in my script in state.configure and in onbarupdate if flat the setstoploss for the trades (and I have no setprofittarget).
If I want to exit with a setprofittarget and not with setstoploss I have added to my customized buttons to send the setprofittarget with the corresponding signal name. This works ok.
But I see now that with a new entry there is setstoploss and also setprofittarget. Why is there also the setprofittarget when I dont have it defined in the code. Is it stored somewhere, how do I delete this so that with every new entry there is only the setstoploss.
Thank you!
Tony

Comment