GT::TradeFilters - Filters to accept or refuse trades


Trade filters are used to decide whether or not a trade is accepted. It can for example refuse trade going against the current trend. You can use several trade filters simultaneously.

$filter->accept_trade($order, $i, $calc, $portfolio)
$system->precalculate_interval($calc, $first, $last)

If you run a system on a long period of time you may want to precalculate all the indicators in order to benefit of possible optimizations. This is the role of those 2 functions.