Hello,
I use the following code but the target profit does not work I don’t understand why
itarget = fibo0+irange*1.618
istop = fibo0-2*pointsize
buy n contract at market
set stop loss istop
set target profit itarget
graph itarget as "itarget buy"
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).
Hello Vonasi,
Thanks for your reply and the mod on my code.
Ok I understand my error it is because I try to sell at a value and not a distance
Thanks