Author Topic: hist_{number}_layp function  (Read 5180 times)

Tags:
  • All members
  • Posts: 832
hist_{number}_layp function
« on: 14 Oct 2013, 00:09 »
hi,
I wonder if someone could explain exactly how the following works and
how it could be used in a trigger.?

hist_{number}_layp .... the manual explanation as under
The weighted avg price of all lay bets in the settled mkt indexed by {number}
I am trying to understand some of the manual .... at long last :)
Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Élite
  • Posts: 3694
  • Gender: Male
*
Re: hist_{number}_layp function
« Reply #1 on: 14 Oct 2013, 06:45 »
hi
it means that if you place multiple bets, the average price of all selections in that market will be used.
so if you bet
3.00
3.50
3.75
4.00
the average price would be 3.56
if you only place one bet then the price will be as normal.
so the history price is only good if you place one bet per market.
the history price is used for staking plans like the kelly staking plan, to get the average price for the calculations

mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 832
Re: hist_{number}_layp function
« Reply #2 on: 14 Oct 2013, 11:27 »
hi mcbee,

Many thanks for the explanation.
My plan is to lay one horse per race using the Kelly Criterion.
Can you point me in the right direction re writing a trigger formula?
thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Élite
  • Posts: 3694
  • Gender: Male
*
Re: hist_{number}_layp function
« Reply #3 on: 14 Oct 2013, 11:33 »
hi
and selections trigger expression hist_1_layp   etc   etc
i am not sure what it is that you want to do,and writing what sort of trigger formula.


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 832
Re: hist_{number}_layp function
« Reply #4 on: 14 Oct 2013, 12:18 »
hi mcbee,

I would like to load up horse races and lay one two or three
favs in the same race.
I will decide later which ones to lay and can filter by conditions.
But for a start, let me just lay the fav in every race and to lay
according to Kelly Criterion.
I'd written down a formula in my notebook a while back which
started me out with this enquiry, not sure how I came across it but
here it is:
IF(hist_1_layp>1.0, 1, 0) + IF(hist_2_layp>1.0, 1, 0) + IF(hist_3_layp>1.0, 1, 0)

If I just lay one horse how can this be written? and can this trigger just be duplicated for as many horses as needed? eg: 1st 2nd and 3rd fav. ??
Hope this is understandable  !
Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Élite
  • Posts: 3694
  • Gender: Male
*
Re: hist_{number}_layp function
« Reply #5 on: 14 Oct 2013, 13:17 »
hi
no.
the hist_1_layp is the price of the last statement/market.
if there was one selection, then hist_1_layp will be the price of the last statement/market.
if there were 3 bets in the last statement/market, then the price would be an average of all 3 bets.
it is not as simple as hist_1_layp,hist_2_layp etc for each selection.
hist_1_etc is the last new statement addition(if one selection then one amount,if more than one selection,then an average of all in that new statement addition)
so hist_1 is for the last settled market
hist_2 is for the next to last settled market(not selection)

mcbee


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 832
Re: hist_{number}_layp function
« Reply #6 on: 14 Oct 2013, 21:19 »
hi mcbee,
so, if as you say hist_1 is the price of the last statement market, If I
wanted an average of say the last 6 statement markets how would
the formula look ?  meaning one lay bet per market for 6 markets.
EG  R1  3.0  R2  5.0  R3  6.0  R4 3.0  R5  9.0  R6  4.0 avg =  5.0

Thanks
R
My grandma taught me not to run downstairs and never back odds on.

  • Élite
  • Posts: 3694
  • Gender: Male
*
Re: hist_{number}_layp function
« Reply #7 on: 14 Oct 2013, 22:57 »
hi
(hist_1_layp+hist_2_layp+hist_3_layp+hist_4_layp+hist_5_layp+hist_6_layp)/6


mcbee
Please read the following  disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 832
Re: hist_{number}_layp function
« Reply #8 on: 14 Oct 2013, 23:21 »
Thanks mcbee,
Looks so easy :)
R
My grandma taught me not to run downstairs and never back odds on.

 

Please note, BetFair is seems to be currently OFFLINE