Partial profits and moving SL to breakeven in Quantstrat

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Partial profits and moving SL to breakeven in Quantstrat

oliver
Is there any other way to instruct R to take half position size at first TP
and move the new SL to breakeven?

I currently take 2 runs to do this.

First run: with SL and 1st TP
Second run: with SL and no TP (Closes when indicators give signal)


Afterwhich, I merge the results of both runs.

Would appreciate some reference to achieve this.

Position size is not fixed but based on ATR (package: IKTrading)

Oliver

        [[alternative HTML version deleted]]

_______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.