NAME

TradeFilters::Generic - Accept or refuse trades based on specific signals


DESCRIPTION

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.


EXAMPLES

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}}