TradeFilters::Generic - Accept or refuse trades based on specific signals
This tradefilter takes two signals as parameter. The first decides if a buy order is allowed, the second one decides if a sell order is allowed. If you don't precise a parameter, the corresponding orders will be refused.
Allow buy orders only when SMA 20 is moving up and sell orders when SMA 20 is decreasing :
TF:Generic {S:Generic:Increase {I:SMA 20}} {S:Generic:Decrease {I:SMA 20}}
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.