I’m building a strategy that closes half of all positions once reach 50% of profit target. It works great while backtesting it but i’ll get a warning and can’t activate it.
Error:
“Trading systems with orders that partially close a position cannot be sent to ProOrder. make sure no quantity is specified in instructions to close positions (in this case the instruction closes all the entire position.)”
My code:
if longonmarket then
if (close > tradePrice) then
sell (mylot / 2) contract at (tradePrice + ((targetprofit / 2) * pipsize)) limit
endif
endif
set target pprofit targetprofit
Hi Johan. PRT V.10.2 does not allow partially closing of position. we need wait until PRT v.10.3
Cheer Kasper
Thanks Kasper. I’ve been in touch with IG and they thought 10.3 will be available sometime early 2017. Let’s hope so!
Hi Johan,
I am very interested in such kind of strategy. Are there any new so far?
Thanks
Steffen
No still not available- I suggest to make 2 Proorder of the same strategy- one with a fixed TP and one that breaks even with the fixed TP and initiate a trailing stop.