Buy same number of shares as stop loss sold
Author: TenOC
Creation Date: 10/26/2017 7:37 PM
profile picture

TenOC

#1
I am a newbe.

I have a strategy with a percent stop loss exit . After a stop loss exit I want to purchase the same number of shares (in the same company as the stop loss sold) at the next buy signal. In other words reinvest my profits (or loss) at each buy.

Can someone help me code this condition? Or must I make a manual adjustment to the alert?
profile picture

Eugene

#2
Example: Reentry after stop loss

To keep the same number of shares you can either use SetShareSize in the Strategy code (and accompany it with "WealthScript Override" in the position sizing dialog) or a Fixed Share position size.