GT::CloseStrategy::CloseGain

This strategy closes the position once the prices have crossed a limit called target. This target is defined as a percentage from the initial price. By default, it's defined as + 25 %. If you use it together with PartialGain, this strategy will only close the remaining shares to be sold/bought. Take care however to place the CloseGain strategy after the PartialGain strategy.