Author Topic: re-distribute profit between selections  (Read 5297 times)

Tags:
  • Élite
  • Posts: 187
  • Karma: +3/-0
  • Gender: Male
*
re-distribute profit between selections
« on: Mon, 26 July, 2010, 10:09 »
Hi,
as a result of a green up (lay then back) in a Under Over market I have a positive profit_loss on every selection but not equal (due to last second price movement).

How do I equalize profits between selections?

Distribute profit trigger action works if you want to distribute profit from one selection to all.

What I want is re-distribute profit between selections

Best Regards,

Theodore

  • Élite
  • Posts: 215
  • Karma: +4/-0
*
Re: re-distribute profit between selections
« Reply #1 on: Mon, 26 July, 2010, 15:23 »
If you want to equalize with lay bets:

1.) find smallest profit_loss of all selections and store is into a trigger variable
myminprofitloss

2.) submit a lay bet on all selections with at lay_price with stake
( profit_loss - myminprofitloss) / lay_price

Add a condition like ( profit_loss - myminprofitloss) / lay_price greater than 2 if you do not want MFPro to do small bets or any other value between 0.05 and 2 if you like to do small bets.

3.) cancel all unmatched lay bets

4.) reapeat steps 1 - 3 periodically. So it is very important to add a condition in step 2 which stops sending lay bets if profit nearly equal!

Due to rounding issues, it is impossible to have exactly the same profit_loss on all selections.

  • Élite
  • Posts: 215
  • Karma: +4/-0
*
Re: re-distribute profit between selections
« Reply #2 on: Mon, 26 July, 2010, 15:33 »
Equalize with back bets works similar. Only step 1 and 2 are different:

1.) find biggest profit_loss of all selections and store is into a trigger variable
mybigprofitloss

2.) submit a back bet on all selections with at back_price with stake
( mybigprofitloss - profit_loss ) / back_price

Add a condition like (  mybigprofitloss - profit_loss ) / back_price greater than 2 if you do not want MFPro to do small bets or any other value between 0.05 and 2 if you like to do small bets.

Never do small back bets when odd is 1000!

  • Élite
  • Posts: 187
  • Karma: +3/-0
  • Gender: Male
*
Re: re-distribute profit between selections
« Reply #3 on: Mon, 26 July, 2010, 15:40 »
Thank you Martin

I will try it

Theodore