Skip to content
Prev 9542 / 15274 Next

Writing sell rules with quantstrat

I also realized a logic fault. The stop-limit order I had created used
the buy signal which is obviously not correct. The sell should occur
anytime price reaches a certain point regardless of the buy signal.

I will re-implement the same thing using a combination of a rule and
an indicator (separate column with price that is 15% higher than
purchase price).

Thanks for your help!

/Sergey
On Wed, Feb 15, 2012 at 8:16 PM, Sergey Pisarenko <drseergio at gmail.com> wrote: