Pages:
Actions
  • #1 by racepro on 14 Oct 2013
  • 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
  • #2 by mcbee on 14 Oct 2013
  • 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
  • #3 by racepro on 14 Oct 2013
  • 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
  • #4 by mcbee on 14 Oct 2013
  • 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
  • #5 by racepro on 14 Oct 2013
  • 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
  • #6 by mcbee on 14 Oct 2013
  • 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
  • #7 by racepro on 14 Oct 2013
  • 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
  • #8 by mcbee on 14 Oct 2013
  • hi
    (hist_1_layp+hist_2_layp+hist_3_layp+hist_4_layp+hist_5_layp+hist_6_layp)/6


    mcbee
  • #9 by racepro on 14 Oct 2013
  • Thanks mcbee,
    Looks so easy :)
    R
Pages:
Actions