| 1 | package Finance::GeniusTrader::CloseStrategy::NeverClose; | ||
| 2 | |||
| 3 | # Copyright 2000-2002 Raphaƫl Hertzog, Fabien Fulhaber | ||
| 4 | # This file is distributed under the terms of the General Public License | ||
| 5 | # version 2 or (at your option) any later version. | ||
| 6 | |||
| 7 | # Standards-Version: 1.0 | ||
| 8 | |||
| 9 | use strict; | ||
| 10 | use vars qw(@ISA @NAMES); | ||
| 11 | |||
| 12 | use Finance::GeniusTrader::CloseStrategy; | ||
| 13 | |||
| 14 | @ISA = qw(Finance::GeniusTrader::CloseStrategy); | ||
| 15 | @NAMES = ("NeverClose"); | ||
| 16 | |||
| 17 | =head1 Finance::GeniusTrader::CloseStrategy::NeverClose | ||
| 18 | |||
| 19 | This strategy never close the already opened positions. This is very | ||
| 20 | usefull to design a sort of Multiple Buy & Hold or Multiple Sell & Hold | ||
| 21 | strategies. | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | sub long_position_opened { | ||
| 26 | my ($self, $calc, $i, $position, $pf_manager, $sys_manager) = @_; | ||
| 27 | |||
| 28 | return; | ||
| 29 | } | ||
| 30 | |||
| 31 | sub short_position_opened { | ||
| 32 | my ($self, $calc, $i, $position, $pf_manager, $sys_manager) = @_; | ||
| 33 | |||
| 34 | return; | ||
| 35 | } | ||
| 36 | |||
| 37 | sub manage_long_position { | ||
| 38 | my ($self, $calc, $i, $position, $pf_manager, $sys_manager) = @_; | ||
| 39 | |||
| 40 | return; | ||
| 41 | } | ||
| 42 | |||
| 43 | sub manage_short_position { | ||
| 44 | my ($self, $calc, $i, $position, $pf_manager, $sys_manager) = @_; | ||
| 45 | |||
| 46 | return; | ||
| 47 | } | ||
| 48 |