Author Topic: last matched back amount code  (Read 8531 times)

Tags:
  • All members
  • Posts: 832
last matched back amount code
« on: 10 Oct 2014, 12:48 »
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
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3653
*
Re: last matched back amount code
« Reply #1 on: 10 Oct 2014, 14:35 »
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.
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: last matched back amount code
« Reply #2 on: 10 Oct 2014, 17:43 »
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
My grandma taught me not to run downstairs and never back odds on.

  • Moderator
  • Posts: 3653
*
Re: last matched back amount code
« Reply #3 on: 10 Oct 2014, 19:05 »
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 :)
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: last matched back amount code
« Reply #4 on: 10 Oct 2014, 22:33 »
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   
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 832
Re: last matched back amount code
« Reply #5 on: 06 Nov 2014, 15:46 »
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
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 47
Re: last matched back amount code
« Reply #6 on: 09 Nov 2014, 22:44 »
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?
Bots are lifesavers.

  • All members
  • Posts: 832
Re: last matched back amount code
« Reply #7 on: 10 Nov 2014, 08:32 »
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
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 832
Re: last matched back amount code
« Reply #8 on: 10 Nov 2014, 08:37 »
Hi rhodesv,
Just noticed your new name
I never forget a face :)
R
My grandma taught me not to run downstairs and never back odds on.

  • All members
  • Posts: 832
Re: last matched back amount code
« Reply #9 on: 11 Nov 2014, 14:16 »
=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
My grandma taught me not to run downstairs and never back odds on.

 

Please note, BetFair is seems to be currently OFFLINE