Pages:
Actions
  • #1 by racepro on 10 Oct 2014
  • Hi,

    How do I refer to the very last back matched bet amount irrespective of which trigger fired it ?
    Example:
    Trigger  A  back amount 5.00
    Trigger B   back amount 8.00
    Trigger C   back amount 7.00
    Trigger A   back amount (should be 7.00)
    Using the bm_backa code will return 5,00, I need it to return 7.00
    Thanks
    R
  • #2 by MarkV on 10 Oct 2014
  • Hi
    Does your trigger bet on other selections? bm_backa is the last matched back amount for a selection. You can define it further with a selection index and bet index.
    example:
    s_2_bm_1_backa  = the last matched back amount on selection index 2
    s_2_bm_2_backa  = the second last matched back amount on selection index 2
    etc.
  • #3 by racepro on 10 Oct 2014
  • Example:
    Trigger  A  back amount 5.00
    Trigger B   back amount 8.00
    Trigger C   back amount 7.00
    Trigger A   back amount (should be 7.00)


    Hi Mark,

    I was hoping the above example would explain it.
    I simply want any of the three triggers to place a 7.00 bet
    as that was the last bet amount placed.
    So if the last bet was trigger B or C then the bet amount would still be 7.00.
    Is there not some code that determines last bet amount matched ?
    Thanks
    R
  • #4 by MarkV on 10 Oct 2014
  • Hi
    Yes the last matched bet amount is available as a selection variable, but not a market variable, which is what I think you are after.

    I've been trying to think of a way to do it. The attached screenshot of a trigger will update a user variable with what you want. At least it did when I tested it briefly :)
  • #5 by racepro on 10 Oct 2014
  • Hi Mark,

    Thanks for your usual prompt response and it seems a lot of thinking went into this one.
    I am a little surprised that "previous market bet amount" is not hard coded and wondered if at some point the Well Done gurus would consider implementing it. I purposely referred to  it as "previous" as opposed to "last" as the latter is reserved for bets before start of event
    eg: last_order etc.
    Perhaps there is little or no use for this code amongst the members which if true would surprise me as many would base their staking around last known bet amount.
    Thanks again and will test it and come back to you.
    Cheers
    R   
  • #6 by racepro on 06 Nov 2014
  • Hi Mark,
    Although I think you may have gone awol..:)  I have found another way around this which does not involve last market matched bet amount.
    It could come in useful on another trigger and appreciate this latest uggestion.
    Cheers
    R
  • #7 by rhodesv on 09 Nov 2014
  • Quote
    I have found another way around this which does not involve last market matched bet amount.

    Hi, can you post that by any chance?
  • #8 by racepro on 10 Nov 2014
  • Hi mcbee,
    I have completely changed my approach and it does not resemble the above, and gave up on that idea as it looked too hard.
    I've decided to work with the profit and deduct an amount which will be the Bet Amount from the winning player to leave a balance of say 2.00 on that player.
    Example:
    Nadal     +5.00
    Murray   -10.00
    Bet Amount = s_1_profit_loss-2
    or
    Nadal    -10.00
    Murray  +5.00
    Bet Amount = s_2_profit_loss-2
    My formula to arrive at the Bet Amount would be:
    =IF(s_1_profit_loss>0,s_1_profit_loss-2,IF(s_2_profit_loss>0,s_2_profit_loss-2))
    This works in an Excel worksheet replacing s_1_profit_loss with a cell address
    However it throws up an error in MFP can you see any problem with it ?
    Notes:  This formula will only be used on a second bet meaning there will always be a profit with one player and a loss with the other.
    My Back triggers don't use an index condition and prefer not to use one.
    The formula will be used for the Bet Amount
    There will be a 2.00 profit remaining on the player with profit after calculation.

    =IF(s_1_profit_loss>0,s_1_profit_loss-2,IF(s_2_profit_loss>0,s_2_profit_loss-2))

    Hope you can correct
    Many thanks
    R
  • #9 by racepro on 10 Nov 2014
  • Hi rhodesv,
    Just noticed your new name
    I never forget a face :)
    R
  • #10 by racepro on 11 Nov 2014
  • =IF(s_1_profit_loss>0,s_1_profit_loss-2,IF(s_2_profit_loss>0,s_2_profit_loss-2))

    If anyone read my last post I have now corrected the formula (below) if interested.

    IF(r_1_profit_loss>0,r_1_profit_loss-2,r_2_profit_loss-2)

    R
Pages:
Actions