Hi everyone, 
I am new to the platform and I must say it is amazing.
I have experience in programming and with a friend who has experience in trading we are developing an algorithm.
But we are having difficulty understanding how positions are closed despite the fact that we have commented out the lines inherent in stop loss and take profit.
We are interested in understanding how the positions are closed since, without stop loss and take profit, the win rate is 92%, if we put this algorithm live with a demo account, would the positions be closed equally?
Also I ask you how we can set the stop loss and take profit in a more "smart" way, we would like to understand if it is a bad practice to put the stop and take orders directly under the MarketOrder and what would be the best practice?
Thank you in advance