The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Finance::GeniusTrader::TradeFilters::FollowTrend - Allow only trades following the direction of an SMA

DESCRIPTION

This filter tries to limit the risks by refusing trades againts the market (ie like buying in a bear market or selling in a bullish market).

The first parameter is the number of days used to calculate the SMA.