Hi Niklas, thanks for your answer.
IG minimum distance for the stop order isn’t a problem so far since I’m only using probacktest to test strategies, I do not use automatic trading now.
So, can you make an example on how to use “set plimit X” with an indicator, as an example the MA20?
Also, if possible I’d like to experiment with targets which are multiples of the stop loss. For a long position that would be, assuming I enter on the close of the bar, CLOSE-LOW. How the formula would be written in the code?