In a long position the gains are "automatically" reinvested since the initial sum and the gains are on the market. With a short position this is no more true.
This CloseStrategy tries to defeat this by reinvesting the gains each time a certain amount of gain has been made since last time the position was augmented.
Use this CloseStrategy at the end of the "system chain" so that a position is not augmented if it's planned to be closed.
To install Finance::GeniusTrader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::GeniusTrader
CPAN shell
perl -MCPAN -e shell install Finance::GeniusTrader
For more information on module installation, please visit the detailed CPAN module installation guide.