Pages:
Actions
  • #1 by billythebusker on 21 Dec 2012
  • Hi all...
    I'm betting with a bank of £200 and a stake of 1% of the total
    If the bank is above £200 I want to bet 1% of the total bank (ie balance/100)
    If the bank is below £200 I want to bet a straight £2
    Is there a simple way to do this ?? If I use balance/100 and the balance is, say £180 it will preumably try to bet £1.80 which is below Betfairs minimum of £2
    Help !!
  • #2 by mcbee on 21 Dec 2012
  • hi
    in the amount box put or copy and paste.

    IF(AND(test_mode=1,test_balance<200),2,IF(AND(test_mode=0,balance<200),2,IF(test_mode=1,test_balance/100,balance/100)))



    mcbee
  • #3 by Oxa (WellDoneSoft) on 22 Dec 2012
  • Either use mcbee's formula for a quick workaround, or see the attached trigger file for a more adjustable solution.
  • #4 by billythebusker on 22 Dec 2012
  • Many thanks guys
    McBee, I can kinda see how that works but could you talk me through the steps...
    I'm using it in real mode so don't need all the 'test mode' stuff, and can't quite figure the last part 'IF(test_mode=1,test_balance/100,balance/100)))'
    Thanks again, and to you too Oxa
  • #5 by mcbee on 22 Dec 2012
  • hi
    IF(AND(test_mode=1,test_balance<200),2,IF(AND(test_mode=0,balance<200),2,IF(test_mode=1,test_balance/100,balance/100)))
    if you are in test mode and the test balance is less than 200 then 2 euro bet
    if you are in live mode and the balance is less than 200 then 2 euro bet
    if you are in test mode then test balance divided by 100 else balance divided by 100
    here it is for live betting only.

    IF(balance<200,2,balance/100)

    a lot easier for just live betting.
    if balance is less than 200 then 2 euro else balance devided by 100


    mcbee
  • #6 by billythebusker on 22 Dec 2012
  • Many thanks McBee.... you are a genuine credit to this forum and a veritable mine of information...
    Happy Christmas to you and everyone else on the forum and here's to a peaceful and prosperous New Year to us all !!
Pages:
Actions