LouRichard – Please always use the ‘Insert PRT Code’ button when posting code as it makes it much easier for others to read. I will tidy up your post for you! 🙂
Without knowing what the values of fibo0 and irange are it is impossible to say but at a guess I would say you are probably calculating a price to sell at rather than a distance to sell at. SET STOP and SET TARGET require a distance in pips (or a distance in percentage if using %LOSS and %TARGET).
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.