Author Topic: r_ticks(back_price,1)  (Read 2706 times)

  • All members
  • Posts: 44
  • Karma: +0/-0
« on: Mon, 01 August, 2011, 19:27 »
I us:
Action: cancel then lay
Price: r_ticks(back_price,1)
Problem: after  refresh , if the conditions don’t change,  the bot   recognizes my offer as back_price(even after canceling) and I raise my offer.
E.g. bet on 3
Bet on 3.05
Bet on 3.10
Problem 2:my problem is liability
I want my liability to be 30$ for lay and amount put 30/(back_price-1),but what if in one moment I sell for 10$,how to put my liability to 20$.
Maybe there needs to be a formula instead of 30$
Can someone help me?
Thank you

  • Élite
  • Posts: 215
  • Karma: +4/-0
Re: r_ticks(back_price,1)
« Reply #1 on: Tue, 02 August, 2011, 09:49 »
Hi snupi33,

your problem with r_ticks:

Add a condition like:

AND bu_layavp IS LESS THAN  back_price

With this condition, MPF puts your lay in front only if there is a better lay froma differnt user.

your problem with liability.

Yes you can use a formula instaed of 30.

If 30 is exactly your funds, you can use

If your fund is 360 you can use (uk_funds-330)/(back_price-1)
to limit your overall liability to 30 EUR.

If you want to limit your liability to 30 per market, you need a couple of triggers if there are unmatched back and lay bets in the market.

  • All members
  • Posts: 44
  • Karma: +0/-0
Re: r_ticks(back_price,1)
« Reply #2 on: Tue, 02 August, 2011, 18:05 »
Hi Martin,
Thanks for the help.Tomorrow I will test it.
But,I thinking you did not understend me about my liability problem.
I want to risk 30$ per horse.
If the odds are 3 and I lay for 5$(risk 10$) ,how to risk in the next bet 20$?