Author Topic: help with staking formula  (Read 3791 times)

Tags:
  • All members
  • Posts: 124
help with staking formula
« on: 11 Jan 2014, 11:14 »
Hi I am trying to formulate a staking plan which makes x amount per race ( init_bet ) with the backing stake dependent on the price, with any previous losses added in.
I have tried this formula in the back amount part of the trigger but it seems to be acting as a straightforward martingale which is not what I want - where have I gone wrong ?

(losses*init_bet)+last_lost+init_bet/(back_price-1)

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: help with staking formula
« Reply #1 on: 11 Jan 2014, 12:56 »
hi
this formula will work, i have added the commission

((losses*init_bet)+last_lost+init_bet)/(back_price-1)*(1+commission)

the reason why it did not do what you wanted was that you had +init_bet/(back_price-1)
you did not combine the pluses to be divided by, so it only divided the init_bet amount


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: 124
Re: help with staking formula
« Reply #2 on: 11 Jan 2014, 17:56 »
That's just great, thank you
What is the correct expression for the number of losing markets ( rather than the number of lost individual bets ) since the the last winning market- as a whole ?

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: help with staking formula
« Reply #3 on: 11 Jan 2014, 18:52 »
hi
losses
if the market is in loss, however many back or lay bets.


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: 124
Re: help with staking formula
« Reply #4 on: 12 Jan 2014, 14:51 »
Ok, thanks.
I am adding an in play greenup trigger to these back bets, so if this fires the amount I win would be less than the init_bet amount. How can I add an expression to take this into account, so the shortfall in profit is taken into account on the next bet ?
Many thanks.

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: help with staking formula
« Reply #5 on: 12 Jan 2014, 15:43 »
hi
sorry, i would need the triggers, so that i can run them and see how to add the loss to the next bet.
i need to see how the bets are placed, the work on a 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: 124
Re: help with staking formula
« Reply #6 on: 12 Jan 2014, 16:12 »
Many thanks for taking a look at this for me.
I sometimes have more than one back selection so I would like to alter the backing trigger to back dutch but I think the staking formula would need to be altered from the initial one you kindly gave me ?

I have attached the trigger file.

  • Élite
  • Posts: 3698
  • Gender: Male
*
Re: help with staking formula
« Reply #7 on: 12 Jan 2014, 17:42 »
hi
here is a trigger that will do what you want
in the constants you can set
amount to win per race
the triggers need all markets,so do not delete any markets.
do NOT tick   delete finnished/settled event's automaticaly , in the general options
i have used the market index as a condition for amount to win per race.

please use test mode until you are happy with your settings

mcbee

download the trigger below
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: 124
Re: help with staking formula
« Reply #8 on: 12 Jan 2014, 18:17 »
Wow !
That's brilliant, thank you.

 

Please note, BetFair is seems to be currently OFFLINE