Hi,
I recently discovered this web and learning a lot with it, thank everybody for your contributions.
Trying to build an automatic trading myself I have a question: is it possible to defined a trade with several exits, for instance buy 2 shares and treat eachone with different profit targets?
Thanks a lot
You may have found the answer bu yourself since your message?
No, sorry but it’s not possible to have different takeprofit for each individual trade on market. They all share the same stoploss and takeprofit.
I haven´t tried yet but I was thinking in trying with “if”, something like:
IF XXXX THEN
SET STOP LOSS X
ELSE
SET STOP LOSS Y
ENDIF
Can something like than work?
Thanks
Sorry, I mixed things. The above is something I want to try also but what is relevant to this post is another thing I want to try, something like this:
IF (CLOSE-TRADEPRICE/TRADEPRICE) < XX
SELL 1 SHARE AT MARKET
ELSIF (CLOSE-TRADEPRICE/TRADEPRICE) < YY
SELL AT MARKET
ENDIF
Can this work?
It will only work in ProBacktest, not in live trading with ProOrder.
Why … it’s just an odd thing about PRT .. maybe it will one day, but not now.
If your code bought at 2 separate prices / conditions / times … for example 2 x 1 Lot … then I guess you could close as 1 x 1 lots and another 1 x 1 lot? But maybe Nicolas will say that can’t be done either??
Cheers
Grahal