dbo.fn_RaceHorseStrategyProperty

Syntax:
dbo.fn_RaceHorseStrategyProperty(id_race, id_horse, id_strategy, property)

Output:
(decimal) Returns properties of an horse in a specific race for a specific strategy.

Input parameters:
id_race (integer)Id of the market.
id_horse (integer)Id of the runner.
id_strategy (integer)Id of the strategy.
property (string) Can return one of the following properties:
  • 'return' = expected profit and loss of the strategy in case the horse wins. Only matched bets are included.
  • 'worst' = expected profit and loss of the strategy in case the horse wins. Matched and unmatched bets are included.
  • 'profit' = expected profit and loss of the strategy in case of edge of the horse specified.

Example:

<place condition="dbo.fn_RaceHorseStrategyProperty(@id_race,@id_horse,@id_strategy,'profit')
not between -10 and 10"/>

place a bet (eventually to hedge the position) if the current trade has a profit lower than -10 or greather than +10.